createKeyPair method
Future<String?>
createKeyPair(
- String key,
- AndroidPromptInfo androidPromptInfo,
- IOSPromptInfo iosPromptInfo
override
Implementation
@override
Future<String?> createKeyPair(
String key,
AndroidPromptInfo androidPromptInfo,
IOSPromptInfo iosPromptInfo,
) async {
if (Platform.isIOS) {
return await methodChannel.invokeMethod<String>('createKeyPair', {
'key': key,
'reason': iosPromptInfo.reason,
});
}
return await methodChannel.invokeMethod<String>('createKeyPair', {
'key': key,
'title': androidPromptInfo.title,
'subtitle': androidPromptInfo.subtitle,
'description': androidPromptInfo.description,
'negativeButton': androidPromptInfo.negativeButton,
'invalidatedByBiometricEnrollment':
androidPromptInfo.invalidatedByBiometricEnrollment,
});
}