createSplit method

Future<int> createSplit(
  1. List<int> tabIds
)

Splits two existing tabs into a Split View. tabIds An array of exactly two tab IDs to pair into a Split View. All tabs must meet the following conditions:

  • They must be adjacent.
  • They must not already be in a split view.
  • They must have matching windowId, pinned, and groupId states.

Implementation

Future<int> createSplit(List<int> tabIds) async {
  var $res = await $js.chrome.tabs
      .createSplit(tabIds.toJSArray((e) => e.toJS))
      .toDart;
  return $res.toDartInt;
}