isBiometricAvailable method

  1. @override
Future<bool> isBiometricAvailable()
override

Check if biometric authentication is available and enrolled.

Implementation

@override
Future<bool> isBiometricAvailable() async {
  try {
    final result = await _methodChannel.invokeMethod<bool>(
      'isBiometricAvailable',
    );
    return result ?? false;
  } on PlatformException catch (e) {
    throw _convertPlatformException(e);
  }
}