APIResource class

Inheritance

Constructors

APIResource(Dio dio, String baseURI)

Properties

baseURI String
final
dio Dio
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

delete({String id, String apiUserToken}) Future<Map<String, dynamic>>
override
dispose() → void
Disposes controllers, streams, etc.
override
get() Future<Map<String, dynamic>>
override
getById({String id, String partOfUrl, String apiUserToken}) Future<Map<String, dynamic>>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
Returns a string representation of this object.
inherited

Operators

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