Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Dart
dart how to tell if an object is an instance of a class
user6161
Programming language:
Dart
2021-03-15 00:45:07
0
Q:
dart how to tell if an object is an instance of a class
magiclollyl
Code:
Dart
2021-08-06 07:13:22
if (emp is Person) { // Type check emp.firstName = 'Bob'; }
0
Tags
object
class
how
Related
dart list equality
dart typedef
print flutter objects
hive dart type adapter
dart the operator [] isn't defined for the class Type
dart get href attribute
New to Communities?
Join the community