PlatformChecker class

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

Constructors

PlatformChecker({Platform platform = instance, bool? isWeb, bool? isRootZone})

Properties

compileMode → String
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasNativeIntegration → bool
Indicates whether a native integration is available.
no setter
isRootZone → bool
final
isWeb → bool
final
platform → Platform
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

isDebugMode() → bool
Check if running in debug environment
isProfileMode() → bool
Check if running in profile environment
isReleaseMode() → bool
Check if running in release/production environment
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