NetManager class

这是一个网络管理类

Constructors

NetManager()
factory

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

get(RequestParams requestParams) Future<Map<String, dynamic>>
这是一个发送get请求
getFileName(String filePath) → dynamic
获取文件名字
init(String baseUrl, int connectTimeout, int receiveTimeout, bool isDebug) → void
初始化配置 connectTimeout 链接超时时间 5s receiveTimeout 接收数据的时间 5s isDebug 是否是debug模式,是会开启日志
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postForm(RequestParams requestParams) Future<Map<String, dynamic>>
这是一个post 表单请求
postJson(RequestParams requestParams) Future<Map<String, dynamic>>
这是一个post json 请求
toString() String
A string representation of this object.
inherited
uploadFile(RequestParams requestParams) Future<Map<String, dynamic>>
这是一个上传文件的 请求

Operators

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