ClientConfiguration class
Constructors
- ClientConfiguration(String _testApiKey, String _productionApiKey, {ApiVersion apiVersion = ApiVersion.v2, String baseUrl = 'https://api.easypost.com', Client? httpClient, Function? boolFunction})
- Creates a new ClientConfiguration instance.
Properties
- apiKey → String
-
Get the current API key depending on the mode.
no setter
- apiVersion → ApiVersion
-
API version
final
- baseUrl → String
-
API base URL
final
- boolFunctionResult → bool
-
Executes the
_boolFunction
and returns the result. Returnsfalse
if the function isnull
.no setter - client ↔ Client
-
HTTP Client
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userAgent → String
-
The User-Agent header to use for all requests.
no setter
Methods
-
enableProductionMode(
) → void - Switches the client to production mode.
-
enableTestMode(
) → void - Switches the client to test mode.
-
fullBaseUrl(
[ApiVersion? apiVersion]) → String -
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