FairNet class

网络请求

Constructors

FairNet()
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

getMethodName(dynamic par) String
inherited
getRegisterMethods() Map<String, Function>
invoke(dynamic par) Future
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(dynamic map, Future<Map?> run(Map reqData)) Future
common request method
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

requestData({required String method, required String url, Map? data, void complete()?, void success(Map resp)?, void failure(String msg)?}) Future

Constants

GET → const String
POST → const String