DioBuilder class
Constructors
-
DioBuilder.fromUrl({required String baseUrl, int connectTimeout = 15000, Map<
String, dynamic>? extraHeaders, bool enableLogging = false, List< Interceptor>? interceptors}) -
factory
-
DioBuilder.json({required String baseUrl, int connectTimeout = 15000, Map<
String, dynamic>? extraHeaders, bool enableLogging = false, List< Interceptor>? interceptors}) -
factory
-
DioBuilder.multiPart({required String baseUrl, int connectTimeout = 15000, Map<
String, dynamic>? extraHeaders, bool enableLogging = false, List< Interceptor>? interceptors}) -
factory
-
DioBuilder.textPain({required String baseUrl, int connectTimeout = 15000, Map<
String, dynamic>? extraHeaders, bool enableLogging = false, List< Interceptor>? interceptors}) -
factory
Properties
- baseUrl → String
-
final
- connectTimeout ↔ int
-
read / write
- contentType → String
-
final
- dio ↔ Dio
-
latefinal
- enableLogging ↔ bool
-
read / write
-
extraHeaders
↔ Map<
String, dynamic>? -
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
interceptors
↔ List<
Interceptor>? -
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
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
Constants
- multipartContentType → const String
-
'multipart/form-data; charset=utf-8'