configure method

  1. @override
Future<bool?> configure({
  1. required String key,
  2. void onHandle(
    1. SMKitStatus
    )?,
})
override

Implementation

@override
Future<bool?> configure({
  required String key,
  void Function(SMKitStatus)? onHandle,
}) async {
  final arg = {'apiPublicKey': key};
  bool? res = false;
  try {
    return await methodChannel.invokeMethod<bool?>('configure', arg);
  } on PlatformException catch (e) {
    debugPrint('PlatformException: ${e.code} ${e.message}');
  }
  return res;
}