ApiEnvironment class
Set of configurations values for communication with API.
Constructors
- ApiEnvironment({required String baseUrl, bool validateRequestsByDefault = true, bool isRequestsAuthorisedByDefault = false})
-
const
Properties
- baseUrl → String
-
Base URL of the API.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRequestsAuthorisedByDefault → bool
-
Indicates should API client add authorisation header to
requests by default.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validateRequestsByDefault → bool
-
Indicates should request with status code different from 2xx
treated as failed by default.
Set it to false if you need to process failed requests responses.
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