createKeys method

  1. @override
Future<String?> createKeys(
  1. AndroidConfig config
)
override

Implementation

@override
Future<String?> createKeys(AndroidConfig config) async {
  try {
    if (Platform.isAndroid) {
      return await methodChannel.invokeMethod<String>(
          'createKeys', config.useStrongBox);
    } else {
      return await methodChannel.invokeMethod<String>('createKeys');
    }
  } on PlatformException {
    rethrow;
  }
}