Session constructor

Session({
  1. required int lastModified,
  2. Tab? tab,
  3. Window? window,
})

Implementation

Session({
  /// The time when the window or tab was closed or modified, represented in
  /// milliseconds since the epoch.
  required int lastModified,

  /// The [tabs.Tab], if this entry describes a tab. Either this or
  /// [sessions.Session.window] will be set.
  Tab? tab,

  /// The [windows.Window], if this entry describes a window. Either this or
  /// [sessions.Session.tab] will be set.
  Window? window,
}) : _wrapped = $js.Session(
        lastModified: lastModified,
        tab: tab?.toJS,
        window: window?.toJS,
      );