GestureLine constructor Null safety

GestureLine(
  1. AxisDirection direction,
  2. {double triggerDistance = 25.0,
  3. double distance = 100.0,
  4. double failDistance = 40.0}
)

Constructs a GestureLine with the provided arguments.

Implementation

GestureLine(
  this.direction, {
  this.triggerDistance = 25.0,
  this.distance = 100.0,
  this.failDistance = 40.0,
}) {
  _counterAxis = flipAxis(axisDirectionToAxis(direction));
  reset();
}