2020-09-21 14:50:26 +03:00
|
|
|
abstract class ExecutionState {}
|
|
|
|
|
|
|
|
class InitialExecutionState extends ExecutionState {}
|
|
|
|
|
2025-03-21 05:24:22 +02:00
|
|
|
class LoadingTemplateExecutingState extends ExecutionState {}
|
|
|
|
|
2020-09-21 14:50:26 +03:00
|
|
|
class IsExecutingState extends ExecutionState {}
|
|
|
|
|
2020-12-02 20:26:41 +02:00
|
|
|
class ExecutedSuccessfullyState extends ExecutionState {
|
|
|
|
ExecutedSuccessfullyState({this.payload});
|
|
|
|
|
|
|
|
final dynamic payload;
|
|
|
|
}
|
2020-09-21 14:50:26 +03:00
|
|
|
|
|
|
|
class FailureState extends ExecutionState {
|
|
|
|
FailureState(this.error);
|
|
|
|
|
|
|
|
final String error;
|
2024-04-08 17:54:58 +03: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 14:50:26 +03:00
|
|
|
}
|