nc-photos/app/lib/widget/settings/app_lock/state_event.dart

36 lines
583 B
Dart
Raw Normal View History

2024-05-26 13:09:16 +02:00
part of '../app_lock_settings.dart';
@genCopyWith
@toString
class _State {
const _State({
required this.appLockType,
});
factory _State.init({
ProtectedPageAuthType? appLockType,
}) =>
_State(
appLockType: appLockType,
);
@override
String toString() => _$toString();
final ProtectedPageAuthType? appLockType;
}
abstract class _Event {
const _Event();
}
@toString
class _SetAppLockType implements _Event {
const _SetAppLockType(this.value);
@override
String toString() => _$toString();
final ProtectedPageAuthType? value;
}