isAvailable property

Future<bool> get isAvailable

Checks if biometrics are available on the device.

Implementation

static Future<bool> get isAvailable async {
  try {
    final canCheck = await _auth.canCheckBiometrics;
    final isDeviceSupported = await _auth.isDeviceSupported();
    return canCheck && isDeviceSupported;
  } on PlatformException {
    return false;
  }
}