clearGroupKeyA method

Future<Either<String, dynamic>> clearGroupKeyA()

Clears (removes) the stored Group Key A from secure storage and invokes the native method SmartfaceMobile.clearGroupKeyA.

Use this method when you want to explicitly remove the key instead of passing 0 to addGroupKeyA.

Returns an Either with an error message on the left if the operation fails, or the native dynamic result on the right if it succeeds.

Implementation

Future<Either<String, dynamic>> clearGroupKeyA() async {
  await _secureStorageWrite(key: 'groupKeyA', value: '');
  return invokeNativeMethod('SmartfaceMobile.clearGroupKeyA');
}