subscribe method Null safety

Future<PushSubscription> subscribe (
  1. [Map? options]
)

Implementation

Future<PushSubscription> subscribe([Map? options]) {
  var options_dict = null;
  if (options != null) {
    options_dict = convertDartToNative_Dictionary(options);
  }
  return promiseToFuture<PushSubscription>(
      JS("", "#.subscribe(#)", this, options_dict));
}