dart check if type is class code example Example: dart how to tell if an object is an instance of a class if (emp is Person) { // Type check emp.firstName = 'Bob'; }