Service class abstract
藉由build_runner實現
Http request service
- Implemented types
Constructors
Properties
- baseUrl → String
-
URL
final
- connectTimeout → Duration
-
連線逾時
final
- dio ↔ Dio
-
dio 實體
Header預設 content-encoding: gzip
ResponseType 預設 ResponseType.json
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClientAdapter ↔ HttpClientAdapter
-
dio httpClientAdapter
getter/setter pair
- interceptors → Interceptors
-
dio interceptors
no setter
- receiveTimeout → Duration
-
讀取逾時
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transformer ↔ Transformer
-
dio transformer
getter/setter pair
- url → String
-
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
request(
List config, List< Pair> params) → Future<Response> - 傳送API
-
setBaseUrl(
String url) → void - 更改Url
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited