OtpBoxViewModelFactory class

Constructors

OtpBoxViewModelFactory()

Properties

dispatch → Dispatch<CoreState>
Runs the action, applying its reducer, and possibly changing the store state. Note: dispatch is of type Dispatch.
no setterinherited
dispatchAsync → DispatchAsync<CoreState>
Runs the action, applying its reducer, and possibly changing the store state. Note: dispatchAsync is of type DispatchAsync.
no setterinherited
dispatchSync → DispatchSync<CoreState>
Runs the action, applying its reducer, and possibly changing the store state. Note: dispatchSync is of type DispatchSync.
no setterinherited
env Object?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state CoreState
The state the store was holding when the factory and the view-model were created. This state is final inside of the factory.
no setterinherited
widget OtpBoxConnector?
A reference to the connector widget that will instantiate the view-model.
finalinherited

Methods

currentState() CoreState
The current (most recent) store state. This will return the current state the store holds at the time the method is called.
inherited
endVisit(BuildContext context, String otp) → void
fromStore() → Vm
getAndRemoveFirstError() → UserException?
Gets the first error from the error queue, and removes it from the queue.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resendOtp(BuildContext context, int step) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited