Answers for "get object type in dart"

3

how to find the type of object in dart

var x = [32,4424];
print(x.runtimeType);

O/P:-
JSArray<int>
Posted by: Guest on December-08-2020
0

dart how to tell if an object is an instance of a class

if (emp is Person) {
  // Type check
  emp.firstName = 'Bob';
}
Posted by: Guest on April-04-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language