approve method

Future<Uint8List> approve(
  1. String alias,
  2. Uint8List payload,
  3. String title,
  4. String reason,
)

Shows the biometric prompt and, on success, signs payload with the biometric-bound key.

Implementation

Future<Uint8List> approve(
  String alias,
  Uint8List payload,
  String title,
  String reason,
) async {
  final pigeonVar_channelName =
      'dev.flutter.pigeon.device_safety_info.BiometricHostApi.approve$pigeonVar_messageChannelSuffix';
  final pigeonVar_channel = BasicMessageChannel<Object?>(
    pigeonVar_channelName,
    pigeonChannelCodec,
    binaryMessenger: pigeonVar_binaryMessenger,
  );
  final Future<Object?> pigeonVar_sendFuture = pigeonVar_channel.send(
    <Object?>[alias, payload, title, reason],
  );
  final pigeonVar_replyList = await pigeonVar_sendFuture as List<Object?>?;
  final Object? pigeonVar_replyValue = _extractReplyValueOrThrow(
    pigeonVar_replyList,
    pigeonVar_channelName,
    isNullValid: false,
  );
  return pigeonVar_replyValue! as Uint8List;
}