HighlightInfo constructor
Implementation
HighlightInfo({
/// The window that contains the tabs.
int? windowId,
/// One or more tab indices to highlight.
required Object tabs,
}) : _wrapped = $js.HighlightInfo(
windowId: windowId,
tabs: switch (tabs) {
List<int>() => tabs.toJSArray((e) => e),
int() => tabs.jsify()!,
_ => throw UnsupportedError(
'Received type: ${tabs.runtimeType}. Supported types are: List<int>, int')
},
);