close property

({Future Function(Object tab, [bool? preserveFocus]) $1, Future Function(Object tabGroup, [bool? preserveFocus]) $2}) get close

Overload accessor: $1, $2

Implementation

({
  /// Closes the tab. This makes the tab object invalid and the tab
  ///  should no longer be used for further actions.
  ///  Note: In the case of a dirty tab, a confirmation dialog will be shown which may be cancelled. If cancelled the tab is still valid
  ///
  ///  @param tab The tab to close.
  ///  @param preserveFocus When `true` focus will remain in its current position. If `false` it will jump to the next tab.
  ///  @returns A promise that resolves to `true` when all tabs have been closed.
  _i2.Future<_i2.dynamic> Function(
    _i2.Object tab, [
    _i2.bool? preserveFocus,
  ]) $1,

  /// Closes the tab group. This makes the tab group object invalid and the tab group
  ///  should no longer be used for further actions.
  ///  @param tabGroup The tab group to close.
  ///  @param preserveFocus When `true` focus will remain in its current position.
  ///  @returns A promise that resolves to `true` when all tab groups have been closed.
  _i2.Future<_i2.dynamic> Function(
    _i2.Object tabGroup, [
    _i2.bool? preserveFocus,
  ]) $2,
}) get close => (
      $1: _close$1,
      $2: _close$2,
    );