url property
Object?
get
url
A URL or array of URLs to open as tabs in the window. Fully-qualified URLs must include a scheme, e.g., 'http://www.google.com', not 'www.google.com'. Non-fully-qualified URLs are considered relative within the extension. Defaults to the New Tab Page.
Implementation
Object? get url => _wrapped.url?.when(
isString: (v) => v,
isArray: (v) => v.toDart.cast<String>().map((e) => e).toList(),
);
set
url
(Object? v)
Implementation
set url(Object? v) {
_wrapped.url = switch (v) {
String() => v.jsify()!,
List() => v.toJSArrayString(),
null => null,
_ => throw UnsupportedError(
'Received type: ${v.runtimeType}. Supported types are: String, List<String>')
};
}