ScrollToAction class final

Scrolls node node into view: alignment 0 puts it at the start of the view, 1 at the end; offset moves it further. axis limits it to the scroll views along one axis (a map in a sideways window centers a point without scrolling the page under it); null scrolls every one around it.

Inheritance

Constructors

ScrollToAction({String node = '', String item = '', String index = '', int durationMs = 400, String curve = 'easeInOut', double alignment = 0, double offset = 0, String offsetFormula = '', ScrollAxis? axis, bool enabled = true, bool nonBlocking = false, Predicate? when})
const

Properties

alignment → double
final
axis → ScrollAxis?
final
curve → String
A Curves name.
final
durationMs → int
final
enabled → bool
False skips the action.
finalinherited
fieldsJson → Json
Its own fields, as JSON (sparse): what toJson writes besides type and the common fields. An action class outside this library overrides this.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
index → String
When node repeats: the position (from 0) of the copy to reveal, an expression, whatever the items' keys are. It wins over item. A position no item has reveals nothing.
final
item → String
When node repeats (a list's item template, or a node inside it): the key of the item whose copy to reveal (an expression; the list's item key, id by default, or else its index). Empty: the first copy.
final
nested → List<ActionDef>
The actions it runs itself (branches, follow-ups), in order.
no setterinherited
node → String
final
nonBlocking → bool
The chain doesn't wait for it, and its failure doesn't stop the chain.
finalinherited
offset → double
final
offsetFormula → String
offset as an expression (JSON "offset": "${...}"): a link's ${route.offset}, a value computed at the time. Wins when it gives a number.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selfAndNested → Iterable<ActionDef>
This action, then every action nested in it, depth first.
no setterinherited
type → String
The JSON type.
no setteroverride
when → Predicate?
Runs only when it holds; null: always.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

typeName → const String