enableNotifications method

  1. @override
Future<void> enableNotifications(
  1. bool enabled
)
override

Implementation

@override
Future<void> enableNotifications(bool enabled) async {
  try {
    await methodChannel.invokeMethod('enableNotifications', { 'enabled': enabled });
  }
  on PlatformException catch(exception) {
    log.severe('Exception when enabling notifications: ${exception.message}');
  }
}