2023-08-09 16:45:32 +02:00
|
|
|
part of '../misc_settings.dart';
|
|
|
|
|
|
|
|
@genCopyWith
|
|
|
|
@toString
|
|
|
|
class _State {
|
|
|
|
const _State({
|
|
|
|
required this.isDoubleTapExit,
|
2024-05-26 13:09:16 +02:00
|
|
|
required this.appLockType,
|
2023-08-09 16:45:32 +02:00
|
|
|
this.error,
|
|
|
|
});
|
|
|
|
|
|
|
|
@override
|
|
|
|
String toString() => _$toString();
|
|
|
|
|
|
|
|
final bool isDoubleTapExit;
|
2024-05-26 13:09:16 +02:00
|
|
|
final ProtectedPageAuthType? appLockType;
|
2023-08-09 16:45:32 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|