DoughTransformerContext class

A context passed to a DoughTransformer. This will contain a context to inform the DoughTransformer on how to transform a widget.

Constructors

DoughTransformerContext({required double rawT, required double t, required DoughRecipeData recipe, required Vector2 origin, required Vector2 target, required Vector2 delta, required double deltaAngle, required DoughController controller, required Axis? axis})
Creates an instance of a DoughTransformerContext.
const

Properties

axis Axis?
The axis on which to constrain any stretching.
final
controller DoughController
The controller for the associated Dough widget.
final
delta → Vector2
The delta of the dough squish. This value is equivalent to DoughController.delta, but is a vector instead of an offset.
final
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.
final
hasAxis bool
Whether or not this transformer has an axis to constrain to.
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.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
rawT double
The unscaled animation time clamped between 0 and 1.
final
recipe DoughRecipeData
The contexual recipe applied to the associated Dough widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
t double
The scaled animation time, based on rawT, which has been transformed by the DoughRecipeData.entryCurve or DoughRecipeData.exitCurve.
final
target → Vector2
The target of the dough squish. This value is equivalent to DoughController.target, but is a vector instead of an offset.
final

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