Collection<T> class

Implemented types

Constructors

Collection.new(String parent, String name, {FromJson<T>? fromJson, ToJson<T>? toJson, DependenciesBuilder<T>? dependenciesBuilder, PersistorSettings? persistorSettings})

Properties

dependenciesBuilder DependenciesBuilder<T>?
Returns the set of documents that the document associated with the given DocumentSnapshot is dependent on.
final
fromJson FromJson<T>?
final
hashCode int
The hash code for this object.
no setteroverride
name String
final
parent String
final
path String
no setteroverride
persistorSettings PersistorSettings?
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toJson ToJson<T>?
final

Methods

delete() → void
doc(String id) Document<T>
exists() bool
get() List<DocumentSnapshot<T>>
isPersistenceEnabled() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe({bool multicast = false}) ObservableQuery<T>
replace(List<DocumentSnapshot<T>> snaps) → void
sortBy(SortFn<T> sort) Query<T>
stream() Stream<List<DocumentSnapshot<T>>>
streamChanges() Stream<List<DocumentChangeSnapshot<T>>>
toQuery() Query<T>
override
toString() String
A string representation of this object.
inherited
where(FilterFn<T> filter) Query<T>

Operators

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

Static Methods

fromPath<S>(String path, {FromJson<S>? fromJson, ToJson<S>? toJson, PersistorSettings? persistorSettings, DependenciesBuilder<S>? dependenciesBuilder}) Collection<S>

Constants

root → const _RootCollection