DoughTransformer class abstract

The strategy for how to transform the Dough.child widget. Override this class to create your own dough-like squish effects. You can apply your custom DoughTransformer strategy using the Dough.transformer property.

See BasicDoughTransformer for an example on how to do this.

Implementers

Constructors

DoughTransformer()
Creates a DoughTransformer.

Properties

axis Axis?
The axis on which to constrain any stretching.
no setter
controller DoughController
The controller for the associated Dough widget.
no setter
delta → Vector2
The delta of the dough squish. This value is equivalent to DoughController.delta, but is a vector instead of an offset.
no setter
deltaAngle double
The full-circle delta angle of the delta value, relative to the Dough widgets up direction. This value ranges between 0 radians and 2PI radians.
no setter
hashCode int
The hash code for this object.
no setterinherited
origin → Vector2
The origin of the dough squish. This value is equivalent to DoughController.origin, but is a vector instead of an offset.
no setter
rawT double
The unscaled animation time clamped between 0 and 1.
no setter
recipe DoughRecipeData
The contexual recipe applied to the associated Dough widget.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
t double
The scaled animation time, based on rawT, which has been transformed by the DoughRecipeData.entryCurve or DoughRecipeData.exitCurve.
no setter
target → Vector2
The target of the dough squish. This value is equivalent to DoughController.target, but is a vector instead of an offset.
no setter

Methods

createDoughMatrix() Matrix4
Creates the Matrix4 which will be used to transform the Dough.child widget.
createExpansionMatrix() Matrix4
See DoughTransformations.expansion.
createPerspectiveWarpMatrix() Matrix4
See DoughTransformations.perspectiveWarp.
createSquishDeformationMatrix() Matrix4
See DoughTransformations.squishDeformation.
createViscositySkewMatrix() Matrix4
See DoughTransformations.viscositySkew.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onPostTransform(DoughTransformerContext context) → void
A callback raised after a transform has been invoked.
onPreTransform(DoughTransformerContext context) → void
A callback raised after a transform has been invoked.
toString() String
A string representation of this object.
inherited
transform(DoughTransformerContext context) Matrix4
Creates the Matrix4 which will be used to transform the Dough.child widget.

Operators

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