AbsDatabase class abstract

Implementers

Constructors

AbsDatabase()

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

createData(String collectionId, String mid, Map data) Future<void>
createModel(String collectionId, AbsExModel model) Future<void>
getAllData(String collectionId) Future<List>
getData(String collectionId, String mid) Future<Map<String, dynamic>>
initialize() Future<void>
initStream({required String collectionId, required Map<String, dynamic> where, required String orderBy, bool descending = true, int? limit, bool hasPage = false}) → dynamic
isNameExist(String collectionId, {required String value, String name = 'name'}) Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryData(String collectionId, {required Map<String, dynamic> where, required String orderBy, bool descending = true, int? limit, int? offset, List<Object?>? startAfter}) Future<List>
queryPage(String collectionId, {required Map<String, QueryValue> where, required Map<String, OrderDirection> orderBy, int? limit, int? offset, List<Object?>? startAfter}) Future<List>
removeData(String collectionId, String mid) Future<void>
removeModel(String collectionId, String mid) Future<void>
setData(String collectionId, String mid, Map data) Future<void>
setModel(String collectionId, AbsExModel model, {bool dontRealTime = false}) Future<void>
simpleQueryData(String collectionId, {required String name, required String value, required String orderBy, bool descending = true, int? limit, int? offset}) Future<List>
streamData({required String collectionId, required Widget consumerFunc(List<Map<String, dynamic>> resultList), required Map<String, dynamic> where, required String orderBy, bool descending = true, int? limit, bool hasPage = false}) Widget
streamData2({required dynamic snapshot, required Widget consumerFunc(List<Map<String, dynamic>> resultList), bool hasPage = false}) Widget
toString() String
A string representation of this object.
inherited
updateData(String collectionId, String mid, Map data) Future<void>

Operators

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

Static Properties

fbDBApp → FirebaseApp?
no setter
sbDBConn → SupabaseClient?
no setter

Static Methods

setFirebaseApp(FirebaseApp fb) → void
setSupabaseApp(SupabaseClient sb) → void