BankDisputeFlowController class
Headless dispute-flow state, following the kit's controller conventions: pure state machine, never touches the network. The host listens, renders BankDisputeWizardSheet, and performs the actual submission when submit fires onSubmitRequested.
- Inheritance
-
- Object
- ChangeNotifier
- BankDisputeFlowController
Constructors
- BankDisputeFlowController({VoidCallback? onSubmitRequested})
Properties
- description → String
-
no setter
-
evidence
→ List<
BankDisputeEvidence> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- onSubmitRequested → VoidCallback?
-
Fired by submit; the host performs the network call and then
calls markSubmitted.
final
- reason → BankDisputeReason?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- step → BankDisputeStep
-
no setter
Methods
-
addEvidence(
BankDisputeEvidence item) → void -
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object.
inherited
-
goBack(
) → bool - Back-safe navigation; returns false at the first step.
-
goToEvidence(
) → void -
goToReview(
) → void -
markSubmitted(
) → void - Host calls this after its network submission succeeds.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeEvidence(
String id) → void -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
selectReason(
BankDisputeReason reason) → void -
setDescription(
String description) → void -
submit(
) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited