ShakeEffect class
A Effect that applies a shaking motion to a Widget.
Properties
-
frequency
→ double
-
The frequency of the shake in hertz. Defaults to 8.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
offset
→ Offset
-
The offset of the shake. Defaults to 5, 0.
final
-
props
→ List<Object?>
-
The list of properties that will be used to determine whether
two instances are equal.
no setter
-
rotation
→ double
-
The rotation of the shake. Defaults to pi / 36.
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
Methods
-
apply(BuildContext context, Widget child)
→ Widget
-
Applies this Effect to given
child
. This is called by Effect builder
widgets to apply the effect to given child
.
override
-
lerp(covariant ShakeEffect other, double value)
→ ShakeEffect
-
Linearly interpolates between two Effects. This is used to animate
between two Effects. The
value
argument is a fraction that
determines the position of this effect between this and other
.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited