GestureLine class
A line gesture to used in CustomGestureDetector.
Detects gestures on based on lines on the screen.
Constructors
- GestureLine(AxisDirection direction, {double triggerDistance = 25.0, double distance = 100.0, double failDistance = 40.0})
- Constructs a GestureLine with the provided arguments.
Properties
- complete → bool
-
Whether this gesture has been complete.
no setteroverride
- direction → AxisDirection
-
Direction of the gesture line.
final
- distance → double
-
Distance required to complete the gesture.
final
- failDistance → double
-
Distance from the line what will make the gesture recognition fail.
final
- failed → bool
-
Whether this gesture failed.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- triggerDistance → double
-
Distance required to trigger the start of the gesture line.
final
- triggered → bool
-
Whether this gesture has been triggered.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
Resets the gesture for reuse.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Offset delta) → void -
Updates the gesture when gesture detection is happening.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited