RuntimeChecker class

Helper to check in which environment the library is running. The environment checks (release/debug/profile) are mutually exclusive.

Constructors

RuntimeChecker({bool? isRootZone})

Properties

compileMode → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
isRootZone → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

isAppObfuscated() → bool
Check if the Dart code is obfuscated.
isDebugMode() → bool
Whether running in debug environment.
isProfileMode() → bool
Whether running in profile environment.
isReleaseMode() → bool
Whether running in release/production environment.
isSplitDebugInfoBuild() → bool
Check if the current build has been built with --split-debug-info
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

Constants

kDebugMode → const bool
Whether running in debug environment as a compile-time constant for guaranteed tree-shaking.
kProfileMode → const bool
Whether running in profile environment as a compile-time constant for guaranteed tree-shaking.
kReleaseMode → const bool
Whether running in release/production environment as a compile-time constant for guaranteed tree-shaking.