Check out example codes for "dart how to tell if an object is an instance of a class". It will help you in understanding the concepts better.

Code Example 1

if (emp is Person) {
  // Type check
  emp.firstName = 'Bob';
}

Learn ReactJs, React Native from akashmittal.com