isNotificationOn static method

Future<bool> isNotificationOn()

To check whether notification will publish or not (default is true of course)

Implementation

static Future<bool> isNotificationOn() async {
  if(!Platform.isAndroid) return false;
  return await _channel.invokeMethod("Pushe.isNotificationEnable") ?? true;
}