dart check class type 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';
}
if (emp is Person) {
// Type check
emp.firstName = 'Bob';
}