RunModeService class

RunModeService helps in setting the run mode of code which further helps in easily differentiating between test runs and actual app run.

Constructors

RunModeService()

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

isAppMode → bool
no setter
isIntegrationTestMode → bool
no setter
isUnitTestMode → bool
Individual getter for checking run mode
no setter
mode ↔ RunMode
mode stores the current run mode of app by default it's value is going to be RunMode.app
getter/setter pair

Static Methods

setRunMode(RunMode newMode) → void
setRunMode is used to set app's run mode majorly to avoid opening dialog while unit testing