nc-photos/app/lib/widget/settings/photos/state_event.dart
2023-07-28 01:25:48 +08:00

53 lines
894 B
Dart

part of '../photos_settings.dart';
@genCopyWith
@toString
class _State {
const _State({
required this.isEnableMemories,
required this.isPhotosTabSortByName,
required this.memoriesRange,
this.error,
});
@override
String toString() => _$toString();
final bool isEnableMemories;
final bool isPhotosTabSortByName;
final int memoriesRange;
final ExceptionEvent? error;
}
abstract class _Event {
const _Event();
}
@toString
class _Init implements _Event {
const _Init();
@override
String toString() => _$toString();
}
@toString
class _SetEnableMemories implements _Event {
const _SetEnableMemories(this.value);
@override
String toString() => _$toString();
final bool value;
}
@toString
class _SetMemoriesRange implements _Event {
const _SetMemoriesRange(this.value);
@override
String toString() => _$toString();
final int value;
}