BaseClientConfig class abstract
The configuration for the client API.
- Inheritance
-
- Object
- BaseConfig
- BaseClientConfig
- Implemented types
- Implementers
Constructors
-
BaseClientConfig([Map<
String, String> ? env]) -
Creates a new instance of BaseClientConfig with the specified
env
map.
Properties
- baseUrl → String
-
The base URL for API endpoints.
no setter
- cognitoClientId → String
-
The client identifier issued by Cognito.
no setterinherited
- cognitoClientSecret → String?
-
The client secret issued by Cognito.
no setterinherited
- cognitoEnabled → bool
-
Indicates if cognito is enabled or not.
no setterinherited
- cognitoEndpoint → String?
-
The endpoint used to communication with Cognito. Typically endaft uses
https://id.your_domain.tld
.no setterinherited - cognitoUserPoolId → String
-
The Cognito user pool identifier.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeoutSeconds → int
-
The request timeout in seconds.
no setter
Methods
-
augmentWith(
Map< String, String> env) → String -
Adds a set of values to the environment and returns the token for
removing the augments. Augments can be removed calling removeAugment
with the returned token.
inherited
-
getOr(
String name, {required String fallback}) → String -
Gets a value by
name
from the underlying config map, or thefallback
if the underlying map does not contain thename
.inherited -
getOrThrow(
String name) → String -
Gets a value by
name
from the underlying config map, or throws a MissingConfigError if the underlying map does not contain thename
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAugment(
String token) → Map< String, String> ? -
Returns the removed environment variable set associated to the
token
.inherited -
resolveUrl(
String relative) → Uri -
Resolves a
relative
URL to an absolute using the baseUrl. -
toString(
) → String -
A string representation of this object.
inherited
-
tryGet(
String name) → String? -
Gets a value by
name
from the underlying config map, ornull
if the underlying map does not contain thename
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited