RestApiClientRequestOptions class
Options for configuring HTTP requests in the RestApiClient.
Constructors
-
RestApiClientRequestOptions.new({Map<
String, dynamic> ? headers, String? contentType, bool silentException = false}) - Constructor for creating an instance of RestApiClientRequestOptions.
Properties
- contentType ↔ String?
-
The content type of the request.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, dynamic> ? -
A map of headers to include with the request.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- silentException ↔ bool
-
A flag to indicate whether to suppress exceptions.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toOptions(
) → Options - Converts the current request options to Dio's Options format.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited