VariableScope enum

The location where the variable is held. This determines where it can be accessed and in the case of VariableScope.device for how long

Inheritance

Constructors

VariableScope()
const

Values

device → const VariableScope

The variable is stored locally on the device's persistent media e.g SD card, disk, localstorage. When it is read, it is read from memory if cached otherwise from local persistent media When written, it is always written to the local persistent media before subscribers are notfied The exact mechanism by which it is stored varies depending on the target device. iOS - NSUserDefaults macOS - NSUserDefaults Android - SharedPreferences Web - LocalStorage Linux - A file Windows - A file

app → const VariableScope

State with this scope is available to all screens. Updating it on one screen will update it on all of them. In memory only.

static → const VariableScope

State with this scope is available to all screens. Updating it on one screen will update it on all of them. In memory only.

screen → const VariableScope

State with this scope is available only on the screen where it is declared, therefore two screens that have a variable with the same name are independent and updating it one one screen does not update it on the other. In memory only.

workflow → const VariableScope

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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

Constants

values → const List<VariableScope>
A constant List of the values in this enum, in order of their declaration.