SyntaxFix
Write A Post
Hire A Developer
Questions
Dart Object type has a runtimeType instance member (source is from dart-sdk v1.14, don't know if it was available earlier)
Object
runtimeType
dart-sdk
class Object { //... external Type get runtimeType; }
Usage:
Object o = 'foo'; assert(o.runtimeType == String);