showNotification method Null safety

Future showNotification (
  1. String title,
  2. [Map? options]
)

Implementation

Future showNotification(String title, [Map? options]) {
  var options_dict = null;
  if (options != null) {
    options_dict = convertDartToNative_Dictionary(options);
  }
  return promiseToFuture(
      JS("", "#.showNotification(#, #)", this, title, options_dict));
}