nc-photos/app/lib/widget/settings/misc/state_event.dart
2024-05-27 01:10:34 +08:00

41 lines
660 B
Dart

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