Collection<T extends Model> class abstract

Implementers

Constructors

Collection()

Properties

hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

change(CollectionChangeType type, T? model) Future<void>
checkIfExceedsLimit() Future<void>
clear() Future<void>
getId() String
getIndexes() List<String>
getLength() int
getLimit() int?
getModel(String modelId) Future<T?>
getModels() Future<List<T>>
getModelType() Type
getModelWithoutFallback(String modelId) Future<T?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChanged(CollectionChangeType type, T? model) Future<void>
onModelNotFound(String id) Future<T?>
onSort(List<T> models) Future<List<T>>
registerCollectionBuilderListener(String id, dynamic callback()) → void
registerControllerListener(String controllerId) → void
removeCollectionBuilderListener(String id) → void
removeModel(String modelId) Future<void>
saveModel(T model) Future<T>
saveModels(List<T> models) Future<void>
setup() Future<void>
syncAll() Future<void>
syncAllWithoutValidation() Future<void>
syncModel(T model) Future<void>
syncModelWithoutValidation(T model) Future<void>
toString() String
A string representation of this object.
inherited
where(String key, dynamic value) Future<List<T>>

Operators

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

Static Methods

finalizeSetup() Future<void>
get<C extends Collection<Model>>({String? id, Type? modelType}) → C
register(Collection<Model> collection) Future<void>