FirebaseLoadingData class

A class that handles loading data from Firebase.

Constructors

FirebaseLoadingData()

Properties

getlist ↔ List<Map<String, dynamic>>
A list to store the data snapshot.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCollrection(String collection) → CollectionReference<Object?>
Returns a CollectionReference for the specified collection.
getDataSnapshotOpjectToMap(QuerySnapshot<Object?> snapshot, {String? idcell}) → List<Map<String, dynamic>>
Loads quiz data and returns it as a list of maps.
getDataSnapshotToMap(AsyncSnapshot<QuerySnapshot<Map<String, dynamic>>> snapshot) → List<Map<String, dynamic>>
Converts the data snapshot to a list of maps.
loadAllData<T>({required String path, required T builder(Map<String, dynamic>? data, String documentId)}) → Future<T>
Loads all data from the specified path and returns it as a Future<T>.
loadDataAsFuture(String collection) → Future<QuerySnapshot<Object?>>
Loads data from the specified collection and returns it as a Future<QuerySnapshot>.
loadDataWithQuery<T extends BaseEntityDataModel>({required String path, required T builder(Map<String, dynamic>? jsondata, String docId), Query<Object?> queryBuilder(Query<Object?> query)?, int sort(T lhs, T rhs)?}) → Future<List<T>>
Loads data with a query from the specified path and returns it as a Future<List<T>>.
loadSingleData<T>({required String path, required T builder(Map<String, dynamic>? data, String documentId)}) → Future<T>
Loads single data from the specified path and returns it as a Future<T>.
loadSingleDocData(String collectin, String id) → Future<Map<String, dynamic>?>
Loads single document data from the specified collection and id and returns it as a Future<Map<String, dynamic>>.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
streamAllData<T>({required String path, required T builder(Map<String, dynamic>? jsondata, String docId)}) → Stream<List<T>>?
Streams all data from the specified path and returns it as a Stream<List<T>>.
StreamDataWithQuery<T>({required String path, required T builder(Map<String, dynamic>? data, String documentId), Query<Object?> queryBuilder(Query<Object?> query)?, int sort(T lhs, T rhs)?}) → Stream<List<T>>
Streams data with a query from the specified path and returns it as a Stream<List<T>>.
streamSingleData<T>({required String path, required String id, required T builder(Map<String, dynamic>? data, String documentId)}) → Stream<T>
Streams single data from the specified path and id and returns it as a Stream<T>.
streamSnapshot({required String path}) → Stream
Streams snapshot from the specified path and returns it as a Stream.
toString() → String
A string representation of this object.
inherited

Operators

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