ServerResponse class
Constructors
-
ServerResponse({required Response? response, required String url, required Map<
String, dynamic> params, required Map<String, dynamic> headers, required dynamic body, required HttpMethod method, required DateTime startTime, required DateTime endTime, DioException? error, String? saveInPath})
Properties
- body ↔ dynamic
-
getter/setter pair
- endTime → DateTime
-
final
- error ↔ DioException?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- haveError → bool
-
是否發生錯誤
no setter
-
headers
↔ Map<
String, dynamic> -
getter/setter pair
- method ↔ HttpMethod
-
getter/setter pair
-
params
↔ Map<
String, dynamic> -
getter/setter pair
- response → Response?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saveInPath ↔ String?
-
getter/setter pair
- startTime → DateTime
-
final
- url ↔ String
-
getter/setter pair
Methods
-
getFile(
) → File - 如果是下載時, 此方法可以得到下載後的路徑
-
getJson(
) → dynamic -
getStatusCode(
) → int? -
getString(
) → String? -
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