GestureLine class Null safety

A line gesture to used in CustomGestureDetector.

Detects gestures on based on lines on the screen.

Inheritance

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.
read-only, override
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.
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
triggerDistance double
Distance required to trigger the start of the gesture line.
final
triggered bool
Whether this gesture has been triggered.
read-only, override

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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