Crinkle class
Provide animation to a piece of Foil
by wrapping it in a Roll
with a specified Crinkle
.
A new Roll()
by default is not animated―because its Crinkle
is
smooth―but a new Crinkle
is animated by default.
See each parameter for more information.
- Mixed-in types
Constructors
- Crinkle({bool isAnimated = true, bool shouldReverse = true, double min = -2.0, double max = 2.0, Scalar scalar = Scalar.identity, Duration period = const Duration(milliseconds: 2000), TransformGradient? transform})
-
Provide animation to a piece of
Foil
by wrapping it in aRoll
with a specifiedCrinkle
.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAnimated → bool
-
A new
Roll()
by default is not animated―because itsCrinkle
is smooth―but anew Crinkle
is animated by default.final - max → double
-
The bounds of this
Crinkle
's animation. Default drives-2..2
.final - min → double
-
The bounds of this
Crinkle
's animation. Default drives-2..2
.final - period → Duration
-
The
Duration
of time for one animation pass in a single direction. If shouldReverse, thisperiod
will pass twice before the animation returns to its original min value.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scalar → Scalar
-
A final multiplier to scale the gradient translation, independently
configurable for either Scalar.horizontal or Scalar.vertical axis.
The default is Scalar.identity which makes no impact.
final
- shouldReverse → bool
-
A new
Roll()
by default is not animated―because itsCrinkle
is smooth―but anew Crinkle
is animated by default.final - transform → TransformGradient?
-
Register a callback that accepts the
x
andy
that are provided
fromRoll.rollListenable
*Crinkle.scalar
, where that
animation value ranges from min to max over period.final
Methods
-
copyWith(
{bool? isAnimated, bool? shouldReverse, double? min, double? max, Scalar? scalar, Duration? period, TransformGradient? transform}) → Crinkle -
📋 Returns a copy of this
Crinkle
with the provided optional parameters overriding those ofthis
. -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited