syncIOS property

Implementation

gentype.MutationSyncIOSHandler get syncIOS => () async {
      if (!_platform.isIOS || _platform.isMacOS) {
        debugPrint('syncIOS is only supported on iOS');
        return false;
      }

      try {
        await _channel.invokeMethod('endConnection');
        await _channel.invokeMethod('initConnection');
        return true;
      } catch (error) {
        debugPrint('Error syncing iOS purchases: $error');
        rethrow;
      }
    };