requestFrameOfReference method Null safety

Future requestFrameOfReference (
  1. String type,
  2. [Map? options]
)

Implementation

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