deviceSupportsBiometrics method
Returns true if the device is capable of checking biometrics.
This will return true even if there are no biometrics currently enrolled.
Implementation
@override
Future<bool> deviceSupportsBiometrics() async {
final List<String> availableBiometrics =
(await _channel.invokeListMethod<String>(
'getAvailableBiometrics',
)) ??
<String>[];
// If anything, including the 'undefined' sentinel, is returned, then there
// is device support for biometrics.
return availableBiometrics.isNotEmpty;
}