AnimatedEffect class
A widget that animates the effects applied to it's child.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AnimatedEffect
- Available Extensions
Constructors
- AnimatedEffect({Key? key, required Widget child, required Duration duration, required AnimationTriggerType triggerType, Object? trigger, Curve curve = appleEaseInOut, VoidCallback? onEnd, int repeat = 0, bool reverse = false, bool startImmediately = false, Duration delay = Duration.zero, BooleanCallback? playIf})
-
Creates AnimatedEffect widget.
const
Properties
- child → Widget
-
The widget below this widget in the tree.
final
- curve → Curve
-
The curve of the animation.
final
- delay → Duration
-
A delay before the animation starts.
final
- duration → Duration
-
The duration of the animation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onEnd → VoidCallback?
-
A callback that is called when the animation ends.
final
- playIf → BooleanCallback?
-
A callback that returns whether the animation should be played
or skipped. If the callback returns false, the animation will
be skipped, even when it is explicitly triggered.
final
- repeat → int
-
Determines how many times the animation should be repeated.
final
- reverse → bool
-
Whether the animation should be reversed after each repetition.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startImmediately → bool
-
Whether the animation should be triggered immediately when the widget is
built, ignoring the value of trigger initially.
final
- trigger → Object?
-
The value used to trigger the animation. As long as the value of trigger
is the same, the animation will not be triggered again.
final
- triggerType → AnimationTriggerType
-
Defines how the animation is fired.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AnimatedEffect> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
maybeOf(
BuildContext context) → EffectQuery? - Returns the animation value of the nearest EffectQuery ancestor. If there is no ancestor, it returns null.
-
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
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited