ReleaseGuard class

Tracks whether the logger was turned on in a release build on purpose and warns loudly when it is.

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

allowed → bool
true in debug/profile builds, and in release builds only after an explicit enabled: true.
no setter

Static Methods

check(String feature) → void
Call when a feature is enabled. In release builds this records the opt-in and prints a one-time warning.