ApiBase class

Implementers

Constructors

ApiBase(String baseUrl)

Properties

baseUrl String
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

bindResource(ApiResource resource) → void
delete(String suffix, {Map<String, dynamic>? urlParams, Map<String, String?>? query}) Future<ApiResponse<void>>
getList<TResponse>(String suffix, {Map<String, dynamic>? urlParams, Map<String, String?>? query, TransferBean<TResponse>? bean}) Future<ApiResponse<List<TResponse>>>
getObject<TResponse>(String suffix, {Map<String, dynamic>? urlParams, Map<String, String?>? query, TransferBean<TResponse>? bean}) Future<ApiResponse<TResponse>>
getRequestHeaders() Map<String, String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patchObject<TResponse>(String suffix, dynamic object, {Map<String, dynamic>? urlParams, Map<String, String?>? query, TransferBean<TResponse>? bean}) Future<ApiResponse<TResponse>>
postObject<TResponse>(String suffix, dynamic object, {Map<String, dynamic>? urlParams, Map<String, String?>? query, TransferBean<TResponse>? bean}) Future<ApiResponse<TResponse>>
putObject<TResponse>(String suffix, dynamic object, {Map<String, dynamic>? urlParams, Map<String, String?>? query, TransferBean<TResponse>? bean}) Future<ApiResponse<TResponse>>
rawRequest<TResponse>(ApiRequestMethod method, String suffix, {dynamic body, Map<String, dynamic>? urlParams, Map<String, String?>? query, TransferBean<TResponse>? bean}) Future<ApiResponse<TResponse>>
toString() String
A string representation of this object.
inherited

Operators

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