createSplit method
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, andgroupIdstates.
Implementation
Future<int> createSplit(List<int> tabIds) async {
var $res = await $js.chrome.tabs
.createSplit(tabIds.toJSArray((e) => e.toJS))
.toDart;
return $res.toDartInt;
}