GeoFireCollectionRef class

Constructors

GeoFireCollectionRef(Query<Object?> _collectionReference)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Map<String, dynamic> data) Future<DocumentReference<Object?>>
add a document to collection with data
data(String id) Stream<List<DocumentSnapshot<Object?>>>
return the Document mapped to the id
delete(dynamic id) Future<void>
delete document with id from the collection
mergeObservable(Iterable<Stream<List<DistanceDocSnapshot>>> queries) Stream<List<DistanceDocSnapshot>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setDoc(String id, dynamic data, {bool merge = false}) Future<void>
create or update a document with id, merge defines whether the document should overwrite
setPoint(String id, String field, double latitude, double longitude) Future<void>
set a geo point with latitude and longitude using field as the object key to the document with id
snapshot() Stream<QuerySnapshot<Object?>>?
return QuerySnapshot stream
toString() String
A string representation of this object.
inherited
within({required GeoFirePoint center, required double radius, required String field, bool strictMode = false}) Stream<List<DocumentSnapshot<Object?>>>
Query firestore documents based on geographic radius from geoFirePoint center field specifies the name of the key in the document returns merged stream as broadcast stream.
withinAsSingleStreamSubscription({required GeoFirePoint center, required double radius, required String field, bool strictMode = false}) Stream<List<DocumentSnapshot<Object?>>>
Query firestore documents based on geographic radius from geoFirePoint center field specifies the name of the key in the document returns merged stream as broadcast stream.

Operators

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