RealtimeDataSource<T extends dynamic> class
abstract
You can use base class Data
without Entity
Constructors
- RealtimeDataSource({required String path, DataEncryptor? encryptor})
Properties
- database → FirebaseDatabase
-
no setter
- delegate → DataDelegate
-
finalinherited
- encryptor → DataEncryptor?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEncryptor → bool
-
no setterinherited
- limitations → DataLimitations
-
finalinherited
- operation → DataOperation
-
no setterinherited
- path → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
dynamic source) → T -
inherited
-
checkById(
String id, {DataFieldParams? params, Object? args}) → Future - Method to check data by ID with optional data source builder.
-
clear(
{DataFieldParams? params, Object? args}) → Future - Method to clear data with optional data source builder.
-
count(
{DataFieldParams? params, Object? args}) → Future -
create(
T data, {DataFieldParams? params, Object? args}) → Future - Method to create data with optional data source builder.
-
creates(
List< T> data, {DataFieldParams? params, bool store = false, Object? args}) → Future - Method to create multiple data entries with optional data source builder.
-
deleteById(
String id, {DataFieldParams? params, Object? args}) → Future - Method to delete data by ID with optional data source builder.
-
deleteByIds(
List< String> ids, {DataFieldParams? params, Object? args}) → Future - Method to delete data by multiple IDs with optional data source builder.
-
execute<
S extends Object> (Future< Response< callback()) → Future<S> >Response< S> > -
inherited
-
executeStream<
S extends Object> (Stream< Response< callback()) → Stream<S> >Response< S> > -
inherited
-
get(
{DataFieldParams? params, Object? args}) → Future - Method to get data with optional data source builder.
-
getById(
String id, {DataFieldParams? params, Object? args}) → Future - Method to get data by ID with optional data source builder.
-
getByIds(
List< String> ids, {DataFieldParams? params, Object? args}) → Future - Method to get data by multiple IDs with optional data source builder.
-
getByQuery(
{DataFieldParams? params, List< DataQuery> queries = const [], List<DataSelection> selections = const [], List<DataSorting> sorts = const [], DataPagingOptions options = const DataPagingOptions(), Object? args}) → Future - Method to get data by query with optional data source builder.
-
listen(
{DataFieldParams? params, Object? args}) → Stream - Stream method to listen for data changes with optional data source builder.
-
listenById(
String id, {DataFieldParams? params, Object? args}) → Stream - Stream method to listen for data changes by ID with optional data source builder.
-
listenByIds(
List< String> ids, {DataFieldParams? params, Object? args}) → Stream - Stream method to listen for data changes by multiple IDs with optional data source builder.
-
listenByQuery(
{DataFieldParams? params, List< DataQuery> queries = const [], List<DataSelection> selections = const [], List<DataSorting> sorts = const [], DataPagingOptions options = const DataPagingOptions(), Object? args}) → Stream - Stream method to listen for data changes by query with optional data source builder.
-
listenCount(
{DataFieldParams? params, Object? args}) → Stream - Method to listenCount data with optional data source builder.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ref(
DataFieldParams? params, DataModifiers modifier, [String? id]) → String -
inherited
-
search(
Checker checker, {DataFieldParams? params, Object? args}) → Future - Method to check data by query with optional data source builder.
-
source(
DataFieldParams? params) → DatabaseReference -
toString(
) → String -
A string representation of this object.
inherited
-
updateById(
String id, Map< String, dynamic> data, {DataFieldParams? params, Object? args}) → Future - Method to update data by ID with optional data source builder.
-
updateByIds(
List updates, {DataFieldParams? params, Object? args}) → Future - Method to update data by multiple IDs with optional data source builder.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited