TabSync class
Service that coordinates session updates across multiple browser tabs.
Constructors
- TabSync({TabSyncChannel? channel, String channelName = 'sp-jwt-auth'})
- Creates a new TabSync coordinator.
Properties
- channel → TabSyncChannel
-
Underlying communication channel.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
messages
→ Stream<
TabSyncMessage> -
Stream of incoming synchronization messages from other tabs.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Closes channel and stream subscriptions.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyLoggedOut(
) → void - Broadcasts a logout event to other tabs.
-
notifyRefreshed(
StoredSession session) → void - Broadcasts a newly refreshed session to other tabs.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited