flutter_data_firebase_database library

Classes

Filter
A helper class to dynamically construct realtime database queries.
FilterBuilder<T>
A helper class to build filter queries.
RequestConfig
The standard request configuration for firebase requests. Allows to configure standard realtime database parameters used by all firebase requests.
ServerIncrementable<T extends num>
A virtual incrementable value that can either be just a plain numeric value or an increment.
ServerIncrementableHiveAdapter<T extends num>
A hive TypeAdapter for ServerIncrementables.
ServerTimestamp
A virtual timestamp that can either be a DateTime or a server set value.
ServerTimestampHiveAdapter
A hive TypeAdapter for ServerTimestamps.
Timeout
Specifies timeout for read requests.

Enums

FormatMode
Specifies how the server should format the response
WriteSizeLimit
The Realtime Database estimates the size of each write request and aborts requests that will take longer than the target time.

Mixins

FirebaseDatabaseAdapter<T extends DataModel<T>>
A RemoteAdapter you can use to add the firebase realtime database as backend for a repository.

Typedefs

TransactionFn<T extends DataModel<T>> = FutureOr<T?> Function(String id, T? data)
The transaction function definition.
UnsupportedEventCb = void Function(String event, String? path)
A callback for handling unsupported realtime database events.

Exceptions / Errors

AuthenticationRevoked
An Exception indicating that a the credential used by the stream has expired. This event is sent when the supplied auth parameter is no longer valid.
RemoteCancellation
Some unexpected errors can send a cancel event and terminate the connection. The cause is described in the reason provided for this Exception. Some potential causes are as follows:
TransactionException
A base class for Exceptions that can be thrown when committing a transaction.
TransactionInvalid
An Exception thrown if a transaction failed to commit because the data returned by the transaction function is invalid. This can for example happen, if the id of the returned data does not match the transaction id.
TransactionRejected
An Exception thrown if a transaction failed to commit because the data has been changed on the server since the beginning of the transaction and was thus rejected.