DataRepositoryWrapper<T> class

Represents a DataRepository that wraps a DataSource instance and a DataReceiver instance

Inheritance

Constructors

DataRepositoryWrapper(String domain, String name, DataSource<T> source, DataReceiver<T> receiver, {bool register = true})

Properties

domain String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
isRegistered bool
no setterinherited
name String
finalinherited
receiver DataReceiver<T>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source DataSource<T>
final
transformerFrom DataTransformerFrom<T>?
getter/setter pairinherited
transformerFromList DataTransformerFromList<T>?
getter/setter pairinherited
transformerTo DataTransformerTo<T?>?
getter/setter pairinherited
transformerToList DataTransformerToList<T>?
getter/setter pairinherited

Methods

doOperation(DataSourceOperation operation, Map<String, String>? parameters, [List<T?>? dataList]) Future<List<T?>?>
inherited
find(Map<String, dynamic>? filter) Future<List<T?>?>
Finds data by filter.
inherited
findByID(Object? id) Future<List<T>?>
Finds data by ID.
inherited
findByIDImpl(Map<String, dynamic> parameters) Future
inherited
findByIDRange(Object? fromID, Object? toID) Future<List<T?>?>
Finds data by ID range.
inherited
findByIDRangeImpl(Map<String, dynamic> parameters) Future
inherited
findImpl(Map<String, dynamic> parameters) Future
inherited
get([Map<String, dynamic>? parameters]) Future<List<T>?>
Gets data using parameters as selector.
override
getImpl(Map<String, dynamic>? parameters) Future
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put({Map<String, dynamic>? parameters, List<T>? dataList}) Future<List<T>?>
Puts dataList using parameters.
override
putImpl(Map<String, dynamic>? parameters, Object? payload) Future
override
toString() String
A string representation of this object.
inherited
transformFrom(T? data) → dynamic
override
transformFromList(List<T>? list) → dynamic
override
transformOutput(Object? o) List<T?>?
override
transformTo(Object? o) → T?
override
transformToList(Object? o) List<T>?
override

Operators

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