Scroll class Null safety
A Flutter Driver command that commands the driver to perform a scrolling action.
- Inheritance
-
- Object
- Command
- CommandWithTarget
- Scroll
Constructors
- Scroll(SerializableFinder finder, double dx, double dy, Duration duration, int frequency, {Duration? timeout})
- Creates a scroll command that will attempt to scroll a scrollable view by dragging a widget located by the given finder.
-
Scroll.deserialize(Map<
String, String> json, DeserializeFinderFactory finderFactory) - Deserializes this command from the value generated by serialize.
Properties
- duration → Duration
-
The duration of the scrolling action.
final
- dx → double
-
Delta X offset per move event.
final
- dy → double
-
Delta Y offset per move event.
final
- finder → SerializableFinder
-
Locates the object or objects targeted by this command.
finalinherited
- frequency → int
-
The frequency in Hz of the generated move events.
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- kind → String
-
Identifies the type of the command object and of the handler.
read-onlyoverride
- requiresRootWidgetAttached → bool
-
Whether this command requires the widget tree to be initialized before
the command may be run.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- timeout → Duration?
-
The maximum amount of time to wait for the command to complete.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
serialize(
) → Map< String, String> -
This method is meant to be overridden if data in addition to finder
is serialized to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited