Session constructor
Session(
{ - required int lastModified,
- Tab? tab,
- 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,
);