nc-photos/app/lib/widget/settings/photos/state_event.dart
Ming Ming 528699d7c5 Remove sort Photos tab by filename option
This is no longer supported in the revamped code
2024-05-07 00:33:10 +08:00

51 lines
817 B
Dart

part of '../photos_settings.dart';
@genCopyWith
@toString
class _State {
const _State({
required this.isEnableMemories,
required this.memoriesRange,
this.error,
});
@override
String toString() => _$toString();
final bool isEnableMemories;
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;
}