PanState class

A class representing the current state of a PanAwareBuilder.

See also:

  • PanPhysics, a base class for implementing pan behavior
Annotations

Constructors

PanState({double distance = 0.0, bool isPanning = false, bool wasFlung = false})
const

Properties

distance double
The distance traveled in pixels since panning started.
final
hashCode int
The hash code for this object.
no setteroverride
isPanning bool
Is set to true if a user is currently panning on the screen.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wasFlung bool
Is set to true if panning resulted in a fling gesture.
final

Methods

copyWith({bool? isPanning, double? distance, bool? wasFlung}) PanState
Returns a copy of this PanState instance updated with the given values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override