Extend type test expression to accept instance of Type in addition to type name #8184
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-duplicate
Closed in favor of an existing report
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
I.e. now this works:
print(v is MyObject);
But this - not.
Type t = MyObject;
print(v is t);
v.runtimeType == MyObject is not enough, I'd like to check also subclasses of MyObject.
The text was updated successfully, but these errors were encountered: