2020-09-21 11:50:26 +00:00
|
|
|
abstract class ExecutionState {}
|
|
|
|
|
|
|
|
class InitialExecutionState extends ExecutionState {}
|
|
|
|
|
|
|
|
class IsExecutingState extends ExecutionState {}
|
|
|
|
|
2020-12-02 18:26:41 +00:00
|
|
|
class ExecutedSuccessfullyState extends ExecutionState {
|
|
|
|
ExecutedSuccessfullyState({this.payload});
|
|
|
|
|
|
|
|
final dynamic payload;
|
|
|
|
}
|
2020-09-21 11:50:26 +00:00
|
|
|
|
|
|
|
class FailureState extends ExecutionState {
|
|
|
|
FailureState(this.error);
|
|
|
|
|
|
|
|
final String error;
|
2024-04-08 14:54:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class AwaitingConfirmationState extends ExecutionState {
|
|
|
|
AwaitingConfirmationState({this.title, this.message, this.onConfirm, this.onCancel});
|
|
|
|
|
|
|
|
final String? title;
|
|
|
|
final String? message;
|
|
|
|
final Function()? onConfirm;
|
|
|
|
final Function()? onCancel;
|
2020-09-21 11:50:26 +00:00
|
|
|
}
|