ApiConfig class
Constructors
-
ApiConfig({Duration? connectTimeout, String? contentType, Map<
String, dynamic> ? extra, bool? followRedirects, Map<String, dynamic> ? headers, ApiListFormat? listFormat, int? maxRedirects, String? method, bool preserveHeaderCase = false, bool? persistentConnection, Map<String, dynamic> ? queryParameters, bool? receiveDataWhenStatusError, Duration? receiveTimeout, RequestEncoder? requestEncoder, ResponseDecoder? responseDecoder, ApiResponseType? responseType = ApiResponseType.json, Duration? sendTimeout, ValidateStatus? validateStatus}) -
const
Properties
- connectTimeout → Duration?
-
final
- contentType → String?
-
final
-
extra
→ Map<
String, dynamic> ? -
final
- followRedirects → bool?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, dynamic> ? -
final
- listFormat → ApiListFormat?
-
final
- maxRedirects → int?
-
final
- method → String?
-
final
- persistentConnection → bool?
-
final
- preserveHeaderCase → bool
-
final
-
queryParameters
→ Map<
String, dynamic> ? -
final
- receiveDataWhenStatusError → bool?
-
final
- receiveTimeout → Duration?
-
final
- requestEncoder → RequestEncoder?
-
final
- responseDecoder → ResponseDecoder?
-
final
- responseType → ApiResponseType?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendTimeout → Duration?
-
final
- validateStatus → ValidateStatus?
-
final
Methods
-
copy(
{String? method, Map< String, dynamic> ? queryParameters, String? path, Duration? connectTimeout, Duration? receiveTimeout, Duration? sendTimeout, Map<String, Object?> ? extra, Map<String, Object?> ? headers, bool? preserveHeaderCase, ApiResponseType? responseType, String? contentType, ValidateStatus? validateStatus, bool? receiveDataWhenStatusError, bool? followRedirects, int? maxRedirects, bool? persistentConnection, RequestEncoder? requestEncoder, ResponseDecoder? responseDecoder, ApiListFormat? listFormat}) → ApiConfig -
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