cake_wallet/lib/core/execution_state.dart

17 lines
366 B
Dart
Raw Normal View History

2020-09-21 11:50:26 +00:00
abstract class ExecutionState {}
class InitialExecutionState extends ExecutionState {}
class IsExecutingState extends ExecutionState {}
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;
}