isPinAuthenticationEnabled method

  1. @override
Future<bool?> isPinAuthenticationEnabled({
  1. required UserId userId,
})
override

Used to determine if the lock screen should be shown

Implementation

@override
Future<bool?> isPinAuthenticationEnabled({required UserId userId}) async {
  try {
    return sp.getBool(_keyBoolPinEnabled(userId).value);
  } catch (e) {
    return null;
  }
}