ZenConfig class
Configuration settings for Zenify framework
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
-
Navigation and routing logging
getter/setter pair
- enablePerformanceMetrics ↔ bool
-
Enable performance metrics collection
getter/setter pair
- enableRouteLogging ↔ bool
-
getter/setter pair
- enableRxTracking ↔ bool
-
Enable/disable Rx tracking logs separately (default: false)
⚠️ WARNING: This creates VERY verbose logs. Only enable when:
getter/setter pair
- logLevel ↔ ZenLogLevel
-
Current log level (default: warning for production safety)
getter/setter pair
-
no setter
- shouldLogRoutes → bool
-
Check if route/navigation logging should occur
This respects both the flag AND the log level
no setter
- strictMode ↔ bool
-
Strict mode - throw exceptions for misuse
getter/setter pair
- verboseErrors ↔ bool
-
Use verbose error formatting (boxed, multi-line)
Default: false (compact single-line)
getter/setter pair
Static Methods
-
applyEnvironment(
dynamic environment) → void - Apply predefined environment configuration
-
configure(
{ZenLogLevel? level, bool? rxTracking, bool? routeLogging, bool? performanceTracking, bool? strict}) → void - Apply custom configuration with fine-grained control
-
configureDevelopment(
) → void - Apply development configuration (shorthand)
-
configureProduction(
) → void - Apply production configuration (shorthand)
-
configureTest(
) → void - Apply test configuration (shorthand)
-
reset(
) → void - Reset all settings to defaults
-
toMap(
) → Map< String, dynamic> - Get current configuration as a map (for debugging)