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
getter/setter pair
contentType String
final
dio Dio
latefinal
enableLogging bool
getter/setter pair
extraHeaders Map<String, dynamic>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
interceptors List<Interceptor>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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