flutter check type of object

63

print(myvar is Person);

Type type = myvar.runtimeType;
print(myvar == Person));

Comments

Submit
0 Comments