ScopeGetStatesX extension
ScopeGetStatesX
is an extension to ScopeGet
that adds convenience methods like scope.getStates
,
scope.getStatesOrNull
and scope.hasStates
.
- on
Methods
-
getStates<
T> ({Object? name}) → States< T> -
Use
scope.getStates<T>(...)
to resolve states from current scope. -
getStatesOrNull<
T> ({Object? name}) → States< T> ? -
Use
scope.getStatesOrNull<T>(...)
to safely resolve states. -
hasStates<
T> ({Object? name}) → bool -
Use
scope.hasStates<T>(...)
to check if states has been exposed.