GeoFireCollectionRef class

Constructors

GeoFireCollectionRef(Query<Map<String, dynamic>> 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<Map<String, dynamic>>>
add a document to collection with data
inherited
data(String id) Stream<List<DocumentSnapshot<Map<String, dynamic>>>>
return the Document mapped to the id
inherited
delete(dynamic id) Future<void>
delete document with id from the collection
inherited
mergeObservable(Iterable<Stream<List<QueryDocumentSnapshot<Map<String, dynamic>>>>> queries) Stream<List<QueryDocumentSnapshot<Map<String, dynamic>>>>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
protectedWithin({required GeoFirePoint center, required double radius, required String field, required int limit, required GeoPoint? geopointFrom(Map<String, dynamic> t), required bool? strictMode}) Stream<List<DocumentSnapshot<Map<String, dynamic>>>>
inherited
protectedWithinWithDistance({required GeoFirePoint center, required double radius, required String field, required int limit, required GeoPoint? geopointFrom(Map<String, dynamic> t), required bool? strictMode}) Stream<List<DistanceDocSnapshot<Map<String, dynamic>>>>
query firestore documents based on geographic radius from geoFirePoint center field specifies the name of the key in the document
inherited
setDoc(String id, Object? data, {bool merge = false}) Future<void>
create or update a document with id, merge defines whether the document should overwrite
inherited
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
inherited
snapshot() Stream<QuerySnapshot<Map<String, dynamic>>>?
return QuerySnapshot stream
inherited
toString() String
A string representation of this object.
inherited
within({required GeoFirePoint center, required double radius, required String field, required int limit, bool? strictMode}) Stream<List<DocumentSnapshot<Map<String, dynamic>>>>
withinWithDistance({required GeoFirePoint center, required double radius, required String field, required int limit, bool? strictMode}) Stream<List<DistanceDocSnapshot<Map<String, dynamic>>>>

Operators

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

Static Methods

geopointFromMap({required String field, required Map<String, dynamic> snapData}) → GeoPoint?