summaryrefslogtreecommitdiff
path: root/lib/model/source/events.dart
diff options
context:
space:
mode:
authormirror <mirror@localhost>2026-11-22 08:41:00 +0900
committermirror <mirror@localhost>2026-11-22 08:41:00 +0900
commit449d8b74bd6d9dae98a07254cdfad677b920e7b0 (patch)
treec131c3528c4d517f56e19b854a7453fedb097d40 /lib/model/source/events.dart
downloadaves-src-master.tar.gz
aves-src-master.zip
snapshot of aves v1.13.12 (secrets removed: android/app/google-services.json)HEADv1.13.12master
Diffstat (limited to 'lib/model/source/events.dart')
-rw-r--r--lib/model/source/events.dart44
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/model/source/events.dart b/lib/model/source/events.dart
new file mode 100644
index 0000000..ec8dc28
--- /dev/null
+++ b/lib/model/source/events.dart
@@ -0,0 +1,44 @@
+import 'package:aves/model/entry/entry.dart';
+import 'package:aves_model/aves_model.dart';
+import 'package:flutter/foundation.dart';
+
+@immutable
+class EntryAddedEvent {
+ final Set<AvesEntry>? entries;
+
+ const EntryAddedEvent([this.entries]);
+}
+
+@immutable
+class EntryRemovedEvent {
+ final Set<AvesEntry> entries;
+
+ const EntryRemovedEvent(this.entries);
+}
+
+@immutable
+class EntryMovedEvent {
+ final MoveType type;
+ final Set<AvesEntry> entries;
+
+ const EntryMovedEvent(this.type, this.entries);
+}
+
+@immutable
+class EntryRefreshedEvent {
+ final Set<AvesEntry> entries;
+
+ const EntryRefreshedEvent(this.entries);
+}
+
+@immutable
+class FilterVisibilityChangedEvent {
+ const FilterVisibilityChangedEvent();
+}
+
+@immutable
+class ProgressEvent {
+ final int done, total;
+
+ const ProgressEvent({required this.done, required this.total});
+}