SmartResponse<T> class

响应包装类

Constructors

SmartResponse({T? data, required Response raw})
const

Properties

data → T?
解析后的数据
final
hashCode int
The hash code for this object.
no setterinherited
headers Headers
响应头
no setter
isSuccess bool
是否成功(2xx)
no setter
raw Response
原始 Dio 响应
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
状态码
no setter

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