manageSubscription method

Future<bool> manageSubscription(
  1. String sku,
  2. String packageName
)

Implementation

Future<bool> manageSubscription(String sku, String packageName) async {
  if (_platform.isAndroid) {
    return (await _channel.invokeMethod<bool?>(
          'manageSubscription',
          <String, dynamic>{
            'sku': sku,
            'packageName': packageName,
          },
        )) ??
        false;
  }
  throw PlatformException(
      code: _platform.operatingSystem, message: "platform not supported");
}