TUserDocService<DTO extends TWriteableId, MODEL extends TModel<DTO> > constructor
TUserDocService<DTO extends TWriteableId, MODEL extends TModel<DTO> > ({
- required TFirestoreCollection<
DTO> collection, - required TDocValueBuilderDef<
DTO, MODEL> defaultValue, - required TDocModelBuilderDef<
DTO, MODEL> modelBuilder, - TDocValueBuilderDef<
DTO, MODEL> ? onMissingRemoteValue, - UserIdLocation userIdLocation = TFirestoreApiDefaults.userIdLocation,
- TDocApiBuilderDef<
DTO, MODEL> ? apiBuilder, - TDocStreamBuilderDef<
DTO, MODEL> ? streamBuilder, - TDocValueBuilderDef<
DTO, MODEL> ? initialValue, - bool initialiseStream = true,
- ValueChanged<
DTO?> ? afterLocalNotifyUpdate, - ValueChanged<
DTO?> ? beforeLocalNotifyUpdate, - IFirestoreCacheService? firestoreCacheService,
- List<
Future> readyDeps(- User user
Implementation
TUserDocService({
required super.collection,
required super.defaultValue,
required super.modelBuilder,
super.onMissingRemoteValue,
this.userIdLocation = TFirestoreApiDefaults.userIdLocation,
super.apiBuilder,
super.streamBuilder,
super.initialValue,
super.initialiseStream = true,
super.afterLocalNotifyUpdate,
super.beforeLocalNotifyUpdate,
super.firestoreCacheService,
super.readyDeps,
});