IndicatorJelly class
Shape deformation of a sliding indicator pill at one moment: a scale about the pill's centre plus a horizontal shift of that centre.
Produced every frame by IndicatorJellyBuilder from
IndicatorJellyPhysics; see there for the motion it describes.
- Annotations
Constructors
- IndicatorJelly({required double scaleX, required double scaleY, double offsetX = 0.0})
-
Creates an IndicatorJelly.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isIdentity → bool
-
Whether this deformation is visually a no-op.
no setter
- matrix → Matrix4
-
The scale for a Transform aligned to Alignment.center; apply
offsetX with a FractionalTranslation.
no setter
- mirrored → IndicatorJelly
-
The same deformation reflected horizontally, for indicators whose
position is directional (AlignmentDirectional) in RTL.
no setter
- offsetX → double
-
Horizontal shift of the pill's centre, as a fraction of its width
(positive = right).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scaleX → double
-
Horizontal scale factor (1 = rest width).
final
- scaleY → double
-
Vertical scale factor (1 = rest height).
final
Methods
-
matrixFor(
Rect rect) → Matrix4 -
The whole deformation as one matrix for geometry laid out in
rect(used by path clippers). -
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
Static Methods
-
resolve(
{required double lead, required double trail, required int itemCount, required double travelDirection, required bool dragging, double stretch = 0.0, double flatten = 0.0, double? dragDeformation, IndicatorJellyPhysics physics = IndicatorJellyPhysics.native}) → IndicatorJelly -
Computes the deformation from the springs driven by
IndicatorJellyBuilder.
Constants
- identity → const IndicatorJelly
- No deformation.