ScaleResponse class

Scale-as-function-of-drag-progress, split into two zones:

  • inDisplay: covers the in-display drag zone (base position → rect's near edge touching display edge). Center lerps from baseCenter → near-edge-on-display center; scale lerps 1.0 → inDisplay.end over the same curved progress.
  • pastDisplay: covers the past-display drag zone (rect at near edge → rect at far edge). End state = rect's far edge touching the display's edge with size base * pastDisplay.end. Scale lerps from inDisplay.end (or 1.0 if no inDisplay ramp) → pastDisplay.end.

Auto-stitched: each zone's start = previous zone's end, so the response can never be discontinuous at the geometric boundary.

Constructors

ScaleResponse({ScaleRamp? inDisplay, ScaleRamp? pastDisplay})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
inDisplay ScaleRamp?
final
pastDisplay ScaleRamp?
final
runtimeType Type
A representation of the runtime type of the object.
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