mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-04 07:46:19 +01:00
23 lines
557 B
Dart
23 lines
557 B
Dart
|
part of '../app_lock_settings.dart';
|
||
|
|
||
|
@npLog
|
||
|
class _Bloc extends Bloc<_Event, _State> with BlocLogger {
|
||
|
_Bloc({
|
||
|
required this.securePrefController,
|
||
|
}) : super(_State.init(
|
||
|
appLockType: securePrefController.protectedPageAuthTypeValue,
|
||
|
)) {
|
||
|
on<_SetAppLockType>(_onSetAppLockType);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
String get tag => _log.fullName;
|
||
|
|
||
|
void _onSetAppLockType(_SetAppLockType ev, Emitter<_State> emit) {
|
||
|
_log.info(ev);
|
||
|
emit(state.copyWith(appLockType: ev.value));
|
||
|
}
|
||
|
|
||
|
final SecurePrefController securePrefController;
|
||
|
}
|