FlutterBiometrics class

Heavily influenced by local_auth

Let's you to create public/private key pair which is stored in native keystore and protected using biometric authentication

You can use generated key pair to create a cryptographic signature

Constructors

FlutterBiometrics()

Properties

authAvailable Future<bool>
Returns if device supports any of the available biometric authorisation types
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createKeys({required String reason, dynamic showIOSErrorDialog = true, DialogMessages dialogMessages = const DialogMessages()}) Future
Creates SHA256 RSA key pair for signing using biometrics
getAvailableBiometricTypes() Future<List<BiometricsType>>
Returns a list of enrolled biometrics
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign({required String payload, required String reason, dynamic showIOSErrorDialog = true, DialogMessages dialogMessages = const DialogMessages()}) Future
Signs payload using generated private key. createKeys() should be called once before using this method.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited