PlatformChecker class

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

Constructors

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

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
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