nc-photos/app/lib/widget/settings/misc/state_event.dart
2023-08-09 22:45:41 +08:00

51 lines
841 B
Dart

part of '../misc_settings.dart';
@genCopyWith
@toString
class _State {
const _State({
required this.isPhotosTabSortByName,
required this.isDoubleTapExit,
this.error,
});
@override
String toString() => _$toString();
final bool isPhotosTabSortByName;
final bool isDoubleTapExit;
final ExceptionEvent? error;
}
abstract class _Event {
const _Event();
}
@toString
class _Init implements _Event {
const _Init();
@override
String toString() => _$toString();
}
@toString
class _SetPhotosTabSortByName implements _Event {
const _SetPhotosTabSortByName(this.value);
@override
String toString() => _$toString();
final bool value;
}
@toString
class _SetDoubleTapExit implements _Event {
const _SetDoubleTapExit(this.value);
@override
String toString() => _$toString();
final bool value;
}