init static method

Future<IabResult?> init({
  1. required String rsaKey,
  2. bool enableDebugLogging = false,
})

Implementation

static Future<IabResult?> init(
    {required String rsaKey, bool enableDebugLogging = false}) async {
  var iabResult = await _channel.invokeMethod("init", <String, dynamic>{
    'rsa': rsaKey,
    'enableDebugLogging': enableDebugLogging,
  });
  var iabResultJson = iabResult != null ? json.decode(iabResult) : null;
  return iabResultJson != null ? IabResult.fromJson(iabResultJson) : null;
}