RequestSettings class
Settings for BaseRequest
Constructors
-
RequestSettings.new({Map<
String, dynamic> defaultHeaders = const {}, String defaultBaseUrl = '', int defaultTimeoutInSeconds = 10, Iterable<Interceptor> defaultInterceptors = const [], required void logPrint(Object obj), required void exceptionPrint(Object error, StackTrace trace)}) -
const
Properties
- defaultBaseUrl → String
-
Default base url if BaseRequest.baseUrl is not provided
final
-
defaultHeaders
→ Map<
String, dynamic> -
Default headers to be added to every instance
final
-
defaultInterceptors
→ Iterable<
Interceptor> -
Default interceptors for DioRequest
final
- defaultTimeoutInSeconds → int
-
Default timeout if BaseRequest.timeout is not provided
final
- exceptionPrint → void Function(Object error, StackTrace trace)
-
Print function for
Dio
loggerfinal - hashCode → int
-
The hash code for this object.
no setterinherited
- logPrint → void Function(Object obj)
-
Print function for
Dio
loggerfinal - 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