RemoteDataSource<T extends Entity<EntityKey>> class abstract

Inheritance

Constructors

RemoteDataSource({required String path, required DataDelegate delegate, DataEncryptor? encryptor, DataLimitations limitations = const DataLimitations()})
const

Properties

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
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(dynamic source) → T
inherited
checkById(String id, {DataFieldParams? params, bool? countable, bool resolveRefs = false, Ignore? ignore}) Future<Response<T>>
Method to check data by ID with optional data source builder.
inherited
clear({DataFieldParams? params, bool? resolveRefs, bool deleteRefs = false, Ignore? ignore, bool counter = false}) Future<Response<T>>
Method to clear data with optional data source builder.
inherited
count({DataFieldParams? params}) Future<Response<int>>
inherited
create(String id, Map<String, dynamic> data, {DataFieldParams? params, bool merge = true, bool createRefs = false}) Future<Response<T>>
Method to create data with optional data source builder.
inherited
creates(Iterable<DataWriter> writers, {DataFieldParams? params, bool merge = true, bool createRefs = false}) Future<Response<T>>
Method to create multiple data entries with optional data source builder.
inherited
deleteById(String id, {DataFieldParams? params, bool? resolveRefs, Ignore? ignore, bool deleteRefs = false, bool counter = false}) Future<Response<T>>
Method to delete data by ID with optional data source builder.
inherited
deleteByIds(Iterable<String> ids, {DataFieldParams? params, bool? resolveRefs, Ignore? ignore, bool deleteRefs = false, bool counter = false}) Future<Response<T>>
Method to delete data by multiple IDs with optional data source builder.
inherited
execute<S extends Object>(Future<Response<S>> callback()) Future<Response<S>>
inherited
executeStream<S extends Object>(Stream<Response<S>> callback()) Stream<Response<S>>
inherited
get({DataFieldParams? params, bool onlyUpdates = false, bool? countable, bool resolveRefs = false, bool resolveDocChangesRefs = false, Ignore? ignore}) Future<Response<T>>
Method to get data with optional data source builder.
inherited
getById(String id, {DataFieldParams? params, bool? countable, bool resolveRefs = false, Ignore? ignore}) Future<Response<T>>
Method to get data by ID with optional data source builder.
inherited
getByIds(Iterable<String> ids, {DataFieldParams? params, bool? countable, bool resolveRefs = false, bool resolveDocChangesRefs = false, Ignore? ignore}) Future<Response<T>>
Method to get data by multiple IDs with optional data source builder.
inherited
getByQuery({DataFieldParams? params, Iterable<DataQuery> queries = const [], Iterable<DataSelection> selections = const [], Iterable<DataSorting> sorts = const [], DataPagingOptions options = const DataPagingOptions(), bool? countable, bool onlyUpdates = false, bool resolveRefs = false, bool resolveDocChangesRefs = false, Ignore? ignore}) Future<Response<T>>
Method to get data by query with optional data source builder.
inherited
listen({DataFieldParams? params, bool? countable, bool onlyUpdates = false, bool resolveRefs = false, bool resolveDocChangesRefs = false, Ignore? ignore}) Stream<Response<T>>
Stream method to listen for data changes with optional data source builder.
inherited
listenById(String id, {DataFieldParams? params, bool? countable, bool resolveRefs = false, Ignore? ignore}) Stream<Response<T>>
Stream method to listen for data changes by ID with optional data source builder.
inherited
listenByIds(Iterable<String> ids, {DataFieldParams? params, bool? countable, bool resolveRefs = false, bool resolveDocChangesRefs = false, Ignore? ignore}) Stream<Response<T>>
Stream method to listen for data changes by multiple IDs with optional data source builder.
inherited
listenByQuery({DataFieldParams? params, Iterable<DataQuery> queries = const [], Iterable<DataSelection> selections = const [], Iterable<DataSorting> sorts = const [], DataPagingOptions options = const DataPagingOptions(), bool? countable, bool onlyUpdates = false, bool resolveRefs = false, bool resolveDocChangesRefs = false, Ignore? ignore}) Stream<Response<T>>
Stream method to listen for data changes by query with optional data source builder.
inherited
listenCount({DataFieldParams? params, Duration? interval}) Stream<Response<int>>
Method to listenCount data with optional data source builder.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ref(DataFieldParams? params, DataModifiers modifier, [String? id]) String
inherited
Method to check data by query with optional data source builder.
inherited
toString() String
A string representation of this object.
inherited
updateById(String id, Map<String, dynamic> data, {DataFieldParams? params, bool? resolveRefs, Ignore? ignore, bool updateRefs = false}) Future<Response<T>>
Method to update data by ID with optional data source builder.
inherited
updateByIds(Iterable<DataWriter> updates, {DataFieldParams? params, bool? resolveRefs, Ignore? ignore, bool updateRefs = false}) Future<Response<T>>
Method to update data by multiple IDs with optional data source builder.
inherited

Operators

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