setPushEnabled method

  1. @override
Future<bool?> setPushEnabled(
  1. bool? enabled
)
override

To Enable/Disable Push Notification

Implementation

@override
Future<bool?> setPushEnabled(bool? enabled) async {
  final bool? result = await methodChannel.invokeMethod('setPushEnabled', {
    "isEnabled": enabled ?? true,
  });

  return result;
}