check if dynamic Type has a given instance #10406
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-not-planned
Closed as we don't intend to take action on the reported issue
This issue was originally filed by @seaneagan
"x is int" is nice, but sometimes instead of "int" we have some dynamic Type object. Would be nice to be able to instance of checks in this case as well, something like:
reflectClass(someType).hasInstance(x);
or
reflect(x).isA(someType);
The text was updated successfully, but these errors were encountered: