ZenEnvironment enum
Predefined environment configurations for Zenify
Use these type-safe constants instead of hardcoded strings.
Example:
ZenConfig.applyEnvironment(ZenEnvironment.development);
Values
- production → const ZenEnvironment
-
Production environment - minimal logging, no debug features
Recommended for: Release builds, app store submissions
Configuration:
- Log Level: error
- Rx Tracking: disabled
- Performance Tracking: disabled
- Strict Mode: disabled
const ZenEnvironment('production') - staging → const ZenEnvironment
-
Staging environment - moderate logging, performance metrics
Recommended for: Pre-production testing, beta releases
Configuration:
- Log Level: warning
- Rx Tracking: disabled
- Performance Tracking: enabled
- Strict Mode: disabled
const ZenEnvironment('staging') - development → const ZenEnvironment
-
Development environment - detailed logging, all debug features
Recommended for: Active development, feature implementation
Configuration:
- Log Level: info
- Rx Tracking: disabled (enable manually if needed)
- Performance Tracking: enabled
- Strict Mode: enabled
const ZenEnvironment('development') - debug → const ZenEnvironment
-
Debug environment - very detailed logging with strict mode
Recommended for: Debugging specific issues, troubleshooting
Configuration:
- Log Level: debug
- Rx Tracking: disabled (enable manually if needed)
- Performance Tracking: enabled
- Strict Mode: enabled
const ZenEnvironment('debug') - trace → const ZenEnvironment
-
Trace environment - extreme verbosity including Rx tracking
⚠️ WARNING: Very verbose! Only use when debugging framework issues
Recommended for: Debugging reactive state issues, memory leaks
Configuration:
- Log Level: trace
- Rx Tracking: enabled
- Performance Tracking: enabled
- Strict Mode: enabled
const ZenEnvironment('trace') - test → const ZenEnvironment
-
Test environment - optimized for unit/widget testing
Recommended for: Running automated tests
Configuration:
- Log Level: warning
- Rx Tracking: disabled
- Performance Tracking: disabled
- Auto Dispose: disabled (for test stability)
- Strict Mode: enabled
const ZenEnvironment('test')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The string value for backward compatibility
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromString(
String value) → ZenEnvironment - Convert from string to enum (case-insensitive)
Constants
-
values
→ const List<
ZenEnvironment> - A constant List of the values in this enum, in order of their declaration.