HighlightInfo constructor

HighlightInfo({
  1. int? windowId,
  2. required Object tabs,
})

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')
        },
      );