CrudBase<T> class
abstract
- Inheritance
-
- Object
- ServiceBase<
T> - CrudBase
- Implementers
Constructors
- CrudBase(WithTokenGetter tokenGetter, String baseUrl, String path, String? requestRole)
Properties
- baseUrl → String
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- path ↔ String
-
getter/setter pairinherited
- requestRole ↔ String
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokenGetter → WithTokenGetter
-
final
Methods
-
create(
T item, {String? callRole}) → Future< T> -
delete(
Uri path) → Future< T> -
inherited
-
edit(
String id, T item, {String? callRole}) → Future< T> -
formatPathFromParts(
List< String?> parts) → String -
get(
Uri path) → Future< T> -
Methods
inherited
-
getAll(
{Map params = const {}, String? callRole}) → Future< T> -
getHeaders(
{String contentType = 'application/json'}) → Future< Map< String, String> > -
inherited
-
getOne(
String id, {String? callRole}) → Future< T> -
getToken(
) → Future< String?> -
override
-
handleResponse(
Response response) → dynamic -
inherited
-
mapper(
dynamic data) → T -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
Uri path, dynamic item) → Future< T> -
inherited
-
put(
Uri path, dynamic item) → Future< T> -
inherited
-
remove(
String id, {String? callRole}) → Future< T> ? -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited