SwipeData class

data model for swipe event. startDx is Offset.dx of drag start. it's from DragStartDetails.localPosition currentDx is Offset.dx of last drag event. it's from DragUpdateDetails.localPosition

Annotations
  • @freezed

Constructors

SwipeData({required double startDx, required double currentDx})
const
factory

Properties

copyWith → $SwipeDataCopyWith<SwipeData>
no setterinherited
currentDx double
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDx double
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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