ApiController<OutputType> class abstract

Implementers

Constructors

ApiController({required Dio dio, required String name, required OutputType fromMap(Map<String, dynamic> data)})

Properties

dio → Dio
final
fromMap → OutputType Function(Map<String, dynamic> data)
final
hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(Map<String, Object> primaryKeys, {Options? options, CancelToken? cancelToken}) Future<OutputType?>
get({Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, void onReceiveProgress(int total, int finish)?}) Future<List<OutputType>>
getById(Object id, {Options? options, CancelToken? cancelToken, void onReceiveProgress(int total, int finish)?}) Future<OutputType?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pathBuild([String? methodPath]) String
post(Map<String, dynamic> data, {Options? options, CancelToken? cancelToken, void onReceiveProgress(int total, int finish)?, void onSendProgress(int total, int finish)?}) Future<OutputType?>
put(Map<String, Object> primaryKeys, Map<String, dynamic> data, {Options? options, CancelToken? cancelToken, void onReceiveProgress(int total, int finish)?, void onSendProgress(int total, int finish)?}) Future<OutputType?>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

apiDio ↔ Dio
latefinal