isSupertypeOf<U> method
Whether this is a supertype of other
.
A class B
is a supertype of A
if an instance of A
is assignable to B
. For example,
Iterable
is a supertype of List
, but not a supertype of String
.
Note that a given class T
is considered a supertype of itself.
Implementation
bool isSupertypeOf<U>(RuntimeType<U> other) => other is RuntimeType<T>;