diff options
Diffstat (limited to 'plugins/aves_model/lib/src/events')
| -rw-r--r-- | plugins/aves_model/lib/src/events/actions.dart | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/aves_model/lib/src/events/actions.dart b/plugins/aves_model/lib/src/events/actions.dart new file mode 100644 index 0000000..8a82b1e --- /dev/null +++ b/plugins/aves_model/lib/src/events/actions.dart @@ -0,0 +1,22 @@ +import 'package:equatable/equatable.dart'; +import 'package:flutter/foundation.dart'; + +@immutable +class ActionEvent<T> extends Equatable { + final T action; + + @override + List<Object?> get props => [action]; + + const ActionEvent(this.action); +} + +@immutable +class ActionStartedEvent<T> extends ActionEvent<T> { + const ActionStartedEvent(super.action); +} + +@immutable +class ActionEndedEvent<T> extends ActionEvent<T> { + const ActionEndedEvent(super.action); +} |
