StartContinueVisitViewModelFactory class

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 StartContinueVisitConnector?
A reference to the connector widget that will instantiate the view-model.
finalinherited

Methods

continueVisit(BuildContext context) Future<void>
continue a patient's visit the visit was already started
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
fromStore() StartContinueVisitViewModel
getAndRemoveFirstError() → UserException?
Gets the first error from the error queue, and removes it from the queue.
inherited
getPhoneNumber() String?
the current patient's phone number
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendOTP(IGraphQlClient? client, String phoneContact) Future<void>
startVisit(BuildContext context, StartVisitType startVisitType) → void
startVisitByEmergencyOverride(BuildContext context, String? phoneContact) → void
startVisitByRequestAccess(BuildContext context, String? phoneContact) → void
toString() String
A string representation of this object.
inherited

Operators

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