FireBaseDB class

Constructors

FireBaseDB.init({OnceCallback? once, EventCallback? onChildAdded, EventCallback? onChildRemoved, EventCallback? onChildChanged, EventCallback? onChildMoved, EventCallback? onValue})
Optionally initialize the Callback functions.
factory

Properties

addedListener EventCallback?
Set 'record added' listener.
no getter
app → FirebaseApp?
Firebase App
no setter
changedListener EventCallback?
Set a 'record changed' listener
no getter
databaseURL String
Returns the Firebase database's url path.
no setter
db → FirebaseDatabase?
Firebase Database object
no setter
hasError bool
no setter
hashCode int
The hash code for this object.
no setterinherited
inError bool
no setter
instance → FirebaseDatabase?
Firebase Database object
no setter
isPersistenceEnabled bool?
Indicates if persisted to on-device (disk) storage even on app restart
no setter
message String
no setter
movedListener EventCallback?
Set a 'record moved' listener
no getter
onceListener OnceCallback?
Add a 'once' listener
no getter
removedListener EventCallback?
Set a 'record removed' listener
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user → User?
The User object
no setter
valueListener EventCallback?
Set a 'value changed' listener
no getter

Methods

close() → void
dataRef(String name) → DatabaseReference?
Returns Data Reference by path name
didChangeAppLifecycleState(AppLifecycleState state) → void
dispose() → void
Clear the memory
getError() Exception?
Get the last error but clear it.
goOffline() Future<void>?
Shuts down our connection to the Firebase Database backend until goOnline is called.
goOnline() Future<void>?
Resumes our connection to the Firebase Database backend after a previous goOffline call.
isOnline() Future<bool>
Boolean indicator if online or not.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChildAdded(DatabaseReference ref, EventCallback listener) bool
Add a Subscription
open() Future<FireBaseDB>
purgeOutstandingWrites() Future<void>?
The Firebase Database client automatically queues writes and sends them to the server at the earliest opportunity, depending on network connectivity.
reference() → DatabaseReference?
Database Reference
setError(Object ex) → void
setEvents(DatabaseReference? ref) → void
setPersistenceCacheSizeBytes(int cacheSize) → void
setPersistenceEnabled(bool enabled) bool
Sets persisted on-device (disk) storage
toString() String
A string representation of this object.
inherited

Operators

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