Request class

Constructors

Request()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

dioClient ↔ Dio
getter/setter pair

Static Methods

get<T>(String url, {Options? options, Map<String, dynamic>? queryParameters}) Future<T>
get请求
post<T>(String url, {Options? options, Object? data, Map<String, dynamic>? queryParameters}) Future<T>
post请求
put<T>(String url, {Options? options, Object? data, Map<String, dynamic>? queryParameters}) Future<T>
put请求
setBaseUrl(String baseUrl) → dynamic