DataSource<T> class
abstract
Represents a Data source
- Inheritance
-
- Object
- DataHandler<
T> - DataSource
Constructors
-
DataSource(String domain, String name, {bool register = true, DataTransformerTo<
T> ? transformerTo, DataTransformerToList<T> ? transformerToList, DataTransformerFrom<T> ? transformerFrom, DataTransformerFromList<T> ? transformerFromList})
Properties
- domain → String
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
finalinherited
- isRegistered → bool
-
no setter
- name → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
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?> ?> -
find(
Map< String, dynamic> ? filter) → Future<List< T?> ?> -
Finds data by
filter
. -
findByID(
Object? id) → Future< List< T> ?> - Finds data by ID.
-
findByIDImpl(
Map< String, dynamic> parameters) → Future -
findByIDRange(
Object? fromID, Object? toID) → Future< List< T?> ?> - Finds data by ID range.
-
findByIDRangeImpl(
Map< String, dynamic> parameters) → Future -
findImpl(
Map< String, dynamic> parameters) → Future -
get(
[Map< String, dynamic> ? parameters]) → Future<List< T> ?> -
Gets data using
parameters
as selector. -
getImpl(
Map< String, dynamic> ? parameters) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transformFrom(
T? data) → dynamic -
inherited
-
transformFromList(
List< T> ? list) → dynamic -
inherited
-
transformOutput(
Object? o) → List< T?> ? -
inherited
-
transformTo(
Object? o) → T? -
inherited
-
transformToList(
Object? o) → List< T> ? -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
instances
→ Map<
String?, DataSource> -
final
-
onRegister
→ EventStream<
DataSource> -
final
Static Methods
-
byID<
T> (String? id) → DataSource< T> ? -
override
-
byName<
T> (String domain, String name) → DataSource< T> ? -
override
-
parametersFind(
Map< String, dynamic> ? filter) → Map<String, dynamic> -
parametersFindByID(
Object? id) → Map< String, dynamic> -
parametersFindByIDRange(
dynamic fromID, dynamic toID) → Map< String, dynamic> -
register(
DataSource instance) → void -
override