RuntimeTypeX extension
Provides extensions to allow RuntimeTypes appear more similar to the core Dart language.
- on
Methods
-
castAs<
U> (RuntimeType< U> type) → U -
An alias for
type.castInstance(this)
. -
isOfType<
U> (RuntimeType< U> type) → bool -
An alias for
type.acceptsInstance(this)
.