useBiometric method

  1. @mustCallSuper
Future<void> useBiometric(
  1. bool isUse
)

Updates the user's preference for biometric authentication.

The new setting is saved using the onWrite callback and updates the local state.

Implementation

@mustCallSuper
Future<void> useBiometric(bool isUse) async {
  await onWrite?.writeBool(_createKey(PrefKeys.isUseBiometricKey), isUse);
  _isUseBiometric = isUse;
}