A class that captures the Type to filter down to using
Given the way Dart generics work, one cannot simply use the
is T /
checks and castings within an ofTypeObservable itself. Therefore, this class
was introduced to capture the type of class you'd like
ofType to filter
down to, or
cast to cast to.
new Stream.fromIterable([1, "hi"]) .ofType(new TypeToken<String>) .listen(print); // prints "hi"
- @Deprecated('Please use Observable.whereType instead')
dynamic other) → bool
A test to determine whether the provided object is of type
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.
dynamic other) → S
Casts an object to be of type