RestApi<T extends RestResponse> class abstract

A skeleton class for making RESTful API calls.

See SimpleRestApi.

Inheritance
Implementers

Constructors

RestApi.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getResponseTypeFromCode(int? code) RestResponseType
Resolve to RestResponseType form status code.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request({required RestMethod method, required String path, Map<String, dynamic> requestBody = const {}}) Future<T>
The Uri for the request is built inside ResApi, to give flexibility on how it is used. The path parameter corresponds to the Uri path, which doesn't hold the host, port and scheme.
requestBinary({required RestMethod method, required String path, Map<String, dynamic> requestBody = const {}}) Future<T>
Request for binary data.
toString() String
A string representation of this object.
inherited

Operators

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