APIResource class

Inheritance

Constructors

APIResource(Dio dio, String baseURI)

Properties

baseURI String
final
dio → Dio
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyDio(dynamic opt) → Dio
delete({String id = '', String apiUserToken = ''}) Future<Map<String, dynamic>>
override
dispose() → void
Disposes controllers, streams, etc.
override
get() Future<Map<String, dynamic>>
override
getAll({String partOfUrl = '', String apiUserToken = ''}) Future<List>
override
getById({String id = '', String partOfUrl = '', String apiUserToken = ''}) Future<Map<String, dynamic>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post({dynamic data, String partOfUrl = '', String? apiUserToken}) Future<Map<String, dynamic>>
override
put({String id = '', String partOfUrl = '', Map<String, dynamic>? data, String apiUserToken = ''}) Future<Map<String, dynamic>>
override
toString() String
A string representation of this object.
inherited

Operators

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