UserSwitchedEvent<T extends DatumEntity> class

Event emitted when the active user is changed in the manager.

Inheritance

Constructors

UserSwitchedEvent({required String? previousUserId, required String newUserId, required bool hadUnsyncedData, DateTime? timestamp})
Creates a user switched event.

Properties

hadUnsyncedData bool
Whether the previous user had unsynced data.
final
hashCode int
The hash code for this object.
no setterinherited
newUserId String
New user ID.
final
previousUserId String?
Previous user ID.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
The time at which the event occurred.
finalinherited
userId String
The user ID associated with this event.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited