DemoMode class
Constructors
- DemoMode()
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 Methods
-
action(
void action()) → void - Call an action if DemoMode is enabled
-
subscribe(
{required void onEnabled()?, required void onDisabled()?}) → StreamSubscription< bool> - Returns a StreamSubscription for DemoMode enabled value
-
value<
T> (T demoValue) → T? -
Returns a
T
DemoMode value if DemoMode is enabled