CreateProperties constructor

CreateProperties({
  1. int? windowId,
  2. int? index,
  3. String? url,
  4. bool? active,
  5. bool? selected,
  6. bool? pinned,
  7. int? openerTabId,
})

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,
}) : _wrapped = $js.CreateProperties(
        windowId: windowId,
        index: index,
        url: url,
        active: active,
        selected: selected,
        pinned: pinned,
        openerTabId: openerTabId,
      );