unsubscribe static method

Future<void> unsubscribe(
  1. String topic
)

Implementation

static Future<void> unsubscribe(String topic) async {
  // Running on Web?
  if (GetPlatform.isWeb) {
    return PushyWebSDK.unsubscribe(topic);
  }

  // Attempt to unsubscribe the device from topic
  return await _channel.invokeMethod('unsubscribe', <dynamic>[topic]);
}