variable library

Classes

FNAttr
TinkBoolVariable
TinkDoubleVariable
TinkIntVariable
TinkJsonVariable<T>
TinkKV<V>
TinkNumVariable
TinkTextVariable
TinkVariableRef
VariableChangeEvent
When a variable changes, emit this using the ref and the new value. Subscribers will be notified.
VariableRef

Enums

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

Mixins

Binding
Marker interface to identify all bindings
TinkRuntimeEvent<V>
TinkVariable
A variable is a named location where information can be stored. The information stored can be used to update parts of the UI or sent in API requests
TinkVariableData<V>
Any data that can be emitted by the application can be stored as variable. Application variable can be bound in the editor at development time and at run time the values are fetched and used as inputs to workflows Note that some TinkEditorHandlers like those for form elements have default workflows which bind their values to some variable
TinkWidgetAttribute
An attribute is a value that can be bound to a TinkVariableData
TinkWidgetInputBinding<S extends ScreenModel, W extends TinkWidgetHandler>
Binds the value of an attribute to some variable
TinkWidgetOutputBinding<E extends EventModel, W extends TinkWidgetHandler>
Sets some variable when the given attribute is modified as a result of the given event
TinkWorkflowBinding<E extends EventModel, W extends WorkflowModel, WM extends TinkWidgetHandler>
Validatable
Any type which can be in an invalid state - this provides the interface to knowing if it is valid or not
VariableSource
The source of a variable is anything that can produce it. A widget for example can produce the value of one of its attributes which is assigned to a variable A workflow action as well can output values that is bound as the source of a variable
VariableTarget
A variable target is anything that wants to be told when that variable has changed. An attribute of a widget for example can be bound to a target This is for "push" based targets. Note that workflow actions use a "pull" based approach where they request the latest value of a variable at any point during their evaluation
WorkflowModel

Constants

eventPrefix → const String
widgetEventPrefix → const String

Functions

attrName(TinkWidgetHandler handler, String attrName) String
eventName(TinkWidgetHandler handler, EventModel event) String

Typedefs

TinkScreenId = String
VariableSourceListener = void Function(dynamic value)
A function that is called when a source produces a value that should be pushed to the variables that are bound to it