isAbleBioAuth method

Future<bool> isAbleBioAuth(
  1. LocalAuthentication localAuth
)

Implementation

Future<bool> isAbleBioAuth(LocalAuthentication localAuth) async {
  final bool canCheckBiometrics = await localAuth.canCheckBiometrics;
  final bool isDeviceSupported = await localAuth.isDeviceSupported();

  final List<BiometricType> availableBiometrics = await localAuth.getAvailableBiometrics();
  BootpayPrint("goBiometricAuth : $canCheckBiometrics, :$isDeviceSupported, ${availableBiometrics.map((e) => e.name).join(', ')}");


  return canCheckBiometrics && isDeviceSupported && availableBiometrics.isNotEmpty;
}