TurboWriteableId<T extends Object> constructor
TurboWriteableId<T extends Object> ({
- bool isLocalDefault = false,
Creates a new instance of TurboWriteableId.
The isLocalDefault
parameter indicates whether this instance represents
a default local value that hasn't been synced to Firestore yet. This is useful
for handling offline-first scenarios or temporary document states.
Example:
// Create a default user that hasn't been synced
final defaultUser = User(name: 'New User', isDefault: true);
Implementation
TurboWriteableId({
this.isLocalDefault = false,
});