unregisterFromNotifications method

Future<ResponseStatus> unregisterFromNotifications()

Implementation

Future<ResponseStatus> unregisterFromNotifications() async {
  String result = await CommonChannel.invokeMethod<String>(
        method: ChannelMethod.unregisterFromNotifications,
      ) ??
      "undefined";

  if (result == "error") {
    return ResponseStatus.error;
  }

  return ResponseStatus.success;
}