EnvironmentPresets class
Predefined environment templates.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
defaults(
{String devBaseUrl = 'https://dev-api.example.com', String stagingBaseUrl = 'https://staging-api.example.com', String prodBaseUrl = 'https://api.example.com'}) → List< Environment> - Default environments list.
-
development(
{String baseUrl = 'https://dev-api.example.com', String? socketUrl}) → Environment - Development environment preset.
-
production(
{String baseUrl = 'https://api.example.com', String? socketUrl}) → Environment - Production environment preset.
-
staging(
{String baseUrl = 'https://staging-api.example.com', String? socketUrl}) → Environment - Staging environment preset.