Api class

Constructors

Api(String url, {String method = POST, dynamic data, String contentType, Map<String, dynamic> header, String requestName, String target, bool mergeByBaseUrl = false})
const

Properties

contentType String
final
data → dynamic
final
hashCode int
The hash code for this object.
read-onlyinherited
final
mergeByBaseUrl bool
注解修饰类时用, 表示生成接口是否按域名合并到文件中
final
method String
final
requestName String
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
target String
注解修饰类时用, 表示要生成的类名, 设置时修饰类下的接口会生成在指定的类中
final
url String
注解修饰类时url为baseUrl, 修饰接口时url为path
final

Methods

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

Operators

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

Constants

GET → const String
'GET'
POST → const String
'POST'