RestQuery class

Constructors

RestQuery(String url, {dynamic body, Map<String, dynamic>? queryParameters})

Properties

body → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
queryParameters Map<String, dynamic>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
final

Methods

external({AppHttpClientBase? client}) RestQuery
extra(Map<String, String> value) RestQuery
get<T>({Map<String, String>? headers, Map<String, dynamic>? extra, Duration? timeout, bool showLoadingIndicator = true}) Future<Response<T>>
headers(Map<String, String> value) RestQuery
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post<T>({Map<String, String>? headers, Map<String, dynamic>? extra, Duration? timeout, bool showLoadingIndicator = true}) Future<Response<T>>
responseType(ResponseType responseType) RestQuery
timeout(Duration value) RestQuery
toString() String
A string representation of this object.
inherited

Operators

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