CreateProperties constructor
CreateProperties({})
Implementation
CreateProperties({
/// The window in which to create the new tab. Defaults to the [current
/// window](windows#current-window).
int? windowId,
/// The position the tab should take in the window. The provided value is
/// clamped to between zero and the number of tabs in the window.
int? index,
/// The URL to initially navigate the tab to. Fully-qualified URLs must
/// include a scheme (i.e., 'http://www.google.com', not 'www.google.com').
/// Relative URLs are relative to the current page within the extension.
/// Defaults to the New Tab Page.
String? url,
/// Whether the tab should become the active tab in the window. Does not
/// affect whether the window is focused (see [windows.update]). Defaults to
/// [true].
bool? active,
/// Whether the tab should become the selected tab in the window. Defaults
/// to [true]
bool? selected,
/// Whether the tab should be pinned. Defaults to [false]
bool? pinned,
/// The ID of the tab that opened this tab. If specified, the opener tab
/// must be in the same window as the newly created tab.
int? openerTabId,
/// The ID of an existing tab to create a split view with. If specified, the
/// split-with tab must meet the following conditions: <ul><li>It must not
/// be an already split tab.</li><li>It must be in the same window as the
/// newly created tab.</li><li>If [windowId] is specified, it must be the
/// same as the split-with tab's window ID.</li><li>If [index] is specified,
/// it must be an index adjacent to the split-with tab and will affect the
/// relative positioning of the newly created tab.</li></ul>
int? splitWithTabId,
}) : _wrapped = $js.CreateProperties(
windowId: windowId,
index: index,
url: url,
active: active,
selected: selected,
pinned: pinned,
openerTabId: openerTabId,
splitWithTabId: splitWithTabId,
);