RestDataSource<T> class
A GridDataSource that fetches data from a REST API using Dio.
- Inheritance
-
- Object
- GridDataSource<
T> - RestDataSource
Constructors
Properties
- dataKey → String?
-
final
- dio → Dio
-
final
-
extraParams
→ Map<
String, String> Function(GridQuery query)? -
final
-
fromJson
→ T Function(Map<
String, dynamic> json) -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalCountHeader → String?
-
final
- url → String
-
final
Methods
-
delete(
dynamic id) → Future< bool> -
inherited
-
fetch(
GridQuery query) → Future< GridPage< T> > -
override
-
insert(
T item) → Future< T?> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
T item) → Future< T?> -
inherited
-
watch(
GridQuery query) → Stream< List< ?T> > -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited