| 1 | abstract class ExecutionState {} |
| 2 | |
| 3 | class InitialExecutionState extends ExecutionState {} |
| 4 | |
| 5 | class LoadingTemplateExecutingState extends ExecutionState {} |
| 6 | |
| 7 | class IsExecutingState extends ExecutionState {} |
| 8 | |
| 9 | class ExecutedSuccessfullyState extends ExecutionState { |
| 10 | ExecutedSuccessfullyState({this.payload}); |
| 11 | |
| 12 | final dynamic payload; |
| 13 | } |
| 14 | |
| 15 | class FailureState extends ExecutionState { |
| 16 | FailureState(this.error); |
| 17 | |
| 18 | final String error; |
| 19 | } |
| 20 | |
| 21 | class AwaitingConfirmationState extends ExecutionState { |
| 22 | AwaitingConfirmationState({this.title, this.message, this.onConfirm, this.onCancel}); |
| 23 | |
| 24 | final String? title; |
| 25 | final String? message; |
| 26 | final Function()? onConfirm; |
| 27 | final Function()? onCancel; |
| 28 | } |