WorkflowContext class
Consists of the relevant data instances of UIStateWorkflow.
An instance of this class is passed into the UIStateWorkflow.builder
method to provide access to the information parser and router delegate,
which can then be passed into a Router or MaterialApp constructor.
For further information see also UIStateWorkflow.
- Inheritance
-
- Object
- ProviderContext
- WorkflowContext
Constructors
-
WorkflowContext({required UIStateManager manager, required UIStateInformationParser informationParser, required UIStateDelegate routerDelegate, Set<
Listenable> valueProviders = const {}}) -
Creates an instance of WorkflowContext.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- informationParser → UIStateInformationParser
-
RouteInformationParser implementation instance.
final
- manager → UIStateManager
-
The manager of the workflow.
final
- routerDelegate → UIStateDelegate
-
RouterDelegate implementation instance.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
valueProviders
→ Set<
Listenable> -
Getter for the value providers.
no setterinherited
Methods
-
access<
T extends Listenable> () → T -
Searches the set of providers for the one with the specific type.
inherited
-
exists<
T extends Listenable> () → bool -
Checks whether the provider of a specific type exists within the set.
inherited
-
fetch<
T extends Listenable> () → T? -
Searches the set of providers for the one with the specific type.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited