open static method

Future<bool> open(
  1. String url, {
  2. ULaunchMode mode = ULaunchMode.platformDefault,
  3. Map<String, String> headers = const <String, String>{},
  4. String? androidPackage,
  5. int? toolbarColor,
  6. int? controlColor,
  7. bool showTitle = true,
  8. bool readerMode = false,
  9. String? webWindowName,
})

Implementation

static Future<bool> open(
  String url, {
  ULaunchMode mode = ULaunchMode.platformDefault,
  Map<String, String> headers = const <String, String>{},
  String? androidPackage,
  int? toolbarColor,
  int? controlColor,
  bool showTitle = true,
  bool readerMode = false,
  String? webWindowName,
}) async {
  if (kIsWeb) return ULaunchWeb.open(url, webWindowName ?? (mode == ULaunchMode.inApp || mode == ULaunchMode.external ? "_blank" : _webTarget(url)));
  _listen();
  return await _call<bool>("open", <String, Object?>{
        "url": url,
        "mode": mode.name,
        "headers": headers,
        "package": androidPackage,
        "toolbarColor": toolbarColor,
        "controlColor": controlColor,
        "showTitle": showTitle,
        "readerMode": readerMode,
      }) ??
      false;
}