addGroupKeyB method
Adds a Group Key B to secure storage and invokes the native
SmartfaceMobile.addGroupKeyB
method.
This method no longer clears the key when the value is 0. To clear/remove the stored key explicitly, call clearGroupKeyB. Passing 0 here will forward 0 to the native layer (ensure this is acceptable in your business logic).
Implementation
Future<Either<String, dynamic>> addGroupKeyB({required int groupKeyB}) async {
await _secureStorageWrite(
key: 'groupKeyB',
value: groupKeyB.toString(),
);
return invokeNativeMethod('SmartfaceMobile.addGroupKeyB', {
'arg0': groupKeyB,
});
}