ScrollAction class Null safety
An Action that scrolls the Scrollable that encloses the current primaryFocus by the amount configured in the ScrollIntent given to it.
If a Scrollable cannot be found above the current primaryFocus, the PrimaryScrollController will be considered for default handling of ScrollActions.
If Scrollable.incrementCalculator is null for the scrollable, the default for a ScrollIntent.type set to ScrollIncrementType.page is 80% of the size of the scroll window, and for ScrollIncrementType.line, 50 logical pixels.
- Inheritance
-
- Object
- Action<
ScrollIntent> - ScrollAction
Constructors
Properties
-
callingAction
→ Action<
ScrollIntent> ? - The Action overridden by this Action.
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- intentType → Type
-
Gets the type of intent this action responds to.
read-onlyinherited
- isActionEnabled → bool
-
Whether this Action is inherently enabled.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
addActionListener(
ActionListenerCallback listener) → void -
Register a callback to listen for changes to the state of this action.
mustCallSuper">@mustCallSuperinherited
-
consumesKey(
ScrollIntent intent) → bool -
Indicates whether this action should treat key events mapped to this
action as being "handled" when it is invoked via the key event.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void - Add additional properties associated with the node.
-
invoke(
ScrollIntent intent) → void -
Called when the action is to be performed.
override
-
isEnabled(
ScrollIntent intent) → bool -
Returns true if the action is enabled and is ready to be invoked.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
notifyActionListeners(
) → void - Call all the registered listeners.
-
removeActionListener(
ActionListenerCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
mustCallSuper">@mustCallSuperinherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited