EnvironmentConfig class
环境配置类
Constructors
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 Properties
- apiTimeout → int
-
API超时时间(秒)
no setter
- baseUrl → String
-
获取当前环境的 baseUrl
no setter
- buildMode → String
-
获取构建模式
no setter
- currentEnvironment → Environment
-
获取当前环境
优先级:强制指定 > 构建模式自动判断
no setter
- enableDebugLog → bool
-
是否启用调试日志(生产环境关闭)
no setter
- environmentName → String
-
获取当前环境名称(用于日志)
no setter
- isDevelopment → bool
-
是否为开发环境
no setter
- isProduction → bool
-
是否为生产环境
no setter
- isTesting → bool
-
是否为测试环境
no setter
Static Methods
-
printConfig(
) → void - 打印当前环境配置