DatumUserSwitchResult class

Result of a user switching operation.

Constructors

DatumUserSwitchResult({required bool success, required String newUserId, String? previousUserId, int unsyncedOperationsHandled = 0, List<DatumEntityBase>? conflicts, String? errorMessage})
Creates a user switch result.
const
DatumUserSwitchResult.aggregate(List<DatumUserSwitchResult> results, {required String? previousUserId, required String newUserId})
Aggregates multiple user switch results into a single summary.
factory
DatumUserSwitchResult.failure({required String newUserId, required String errorMessage, String? previousUserId})
Creates a failed user switch result.
factory
DatumUserSwitchResult.success({required String newUserId, String? previousUserId, int unsyncedOperationsHandled = 0, List<DatumEntityBase>? conflicts})
Creates a successful user switch result.
factory

Properties

conflicts List<DatumEntityBase>?
Conflicts encountered during the switch.
final
errorMessage String?
Error message if the switch failed.
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
success bool
Whether the switch was successful.
final
unsyncedOperationsHandled int
Number of unsynced operations handled during switch.
final

Methods

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

Operators

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