url property
Object?
get
url
Match tabs against one or more URL patterns. Fragment
identifiers are not matched. This property is ignored if the extension
does not have the "tabs"
permission.
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>')
};
}