setNotificationOptions method

  1. @override
Future<void> setNotificationOptions(
  1. DitoNotificationOptions options
)
override

Implementation

@override
Future<void> setNotificationOptions(DitoNotificationOptions options) async {
  try {
    await methodChannel.invokeMethod<void>(
      'setNotificationOptions',
      options.toMap(),
    );
  } on PlatformException {
    rethrow;
  } catch (e) {
    throw mapNativeError(e);
  }
}