getOptions method

Gets the current InAppBrowser options. Returns null if it wasn't able to get them.

Implementation

Future<InAppBrowserClassOptions?> getOptions() async {
  this.throwIfNotOpened();
  Map<String, dynamic> args = <String, dynamic>{};

  Map<dynamic, dynamic>? options =
      await _channel.invokeMethod('getOptions', args);
  if (options != null) {
    options = options.cast<String, dynamic>();
    return InAppBrowserClassOptions.fromMap(options as Map<String, dynamic>);
  }

  return null;
}