flutter check type of object

66

print(myvar is Person);

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

Comments

Submit
0 Comments