RestApiClientOptions class

Options to configure the RestApiClient.

Constructors

RestApiClientOptions({String baseUrl = '', bool overrideBadCertificate = true, bool cacheEnabled = false, Duration? connectTimeout, Duration? sendTimeout, Duration? receiveTimeout})
Constructor for creating an instance of RestApiClientOptions.

Properties

baseUrl String
The base URL for API requests.
final
cacheEnabled bool
Toggle to enable or disable cache.
final
connectTimeout Duration?
Timeout for establishing a connection to the server.
final
hashCode int
The hash code for this object.
no setterinherited
overrideBadCertificate bool
Toggle to override bad SSL certificates.
final
receiveTimeout Duration?
Default timeout for receiving response data from the server.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendTimeout Duration?
Default timeout for sending request data to the server.
final

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