diff options
| author | mirror <mirror@localhost> | 2026-11-22 08:41:00 +0900 |
|---|---|---|
| committer | mirror <mirror@localhost> | 2026-11-22 08:41:00 +0900 |
| commit | 449d8b74bd6d9dae98a07254cdfad677b920e7b0 (patch) | |
| tree | c131c3528c4d517f56e19b854a7453fedb097d40 /lib/model/source/section_keys.dart | |
| download | aves-src-master.tar.gz aves-src-master.zip | |
Diffstat (limited to 'lib/model/source/section_keys.dart')
| -rw-r--r-- | lib/model/source/section_keys.dart | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/model/source/section_keys.dart b/lib/model/source/section_keys.dart new file mode 100644 index 0000000..52cfb48 --- /dev/null +++ b/lib/model/source/section_keys.dart @@ -0,0 +1,34 @@ +import 'package:equatable/equatable.dart'; +import 'package:flutter/foundation.dart'; + +@immutable +class SectionKey { + const SectionKey(); +} + +class EntryAlbumSectionKey extends SectionKey with EquatableMixin { + final String? directory; + + @override + List<Object?> get props => [directory]; + + const EntryAlbumSectionKey(this.directory); +} + +class EntryDateSectionKey extends SectionKey with EquatableMixin { + final DateTime? date; + + @override + List<Object?> get props => [date]; + + const EntryDateSectionKey(this.date); +} + +class EntryRatingSectionKey extends SectionKey with EquatableMixin { + final int rating; + + @override + List<Object?> get props => [rating]; + + const EntryRatingSectionKey(this.rating); +} |
