WidgetRestingEffects class

Class for setting up the animation effects to play while the widget is not transitioning on or off the screen

Constructors

WidgetRestingEffects({WidgetRestingEffectStyle? style, AtRestAnimationSettingsBuilder? builder, Duration? duration, Alignment? alignment, Curve? curve, int? numberOfPlays, double? effectStrength, Duration? delay})
Default constructor for at rest animations
WidgetRestingEffects.bounce({AtRestAnimationSettingsBuilder? builder, Duration? duration, Alignment? alignment, Curve? curve, int? numberOfPlays, double? effectStrength, Duration? delay})
Constructor bounce the widget up and down
WidgetRestingEffects.dangle({AtRestAnimationSettingsBuilder? builder, Duration? duration, Alignment? alignment, Curve? curve, int? numberOfPlays, double? effectStrength, Duration? delay})
Constructor to dangle the widget using skew from the top of the widget
WidgetRestingEffects.fidget({AtRestAnimationSettingsBuilder? builder, Duration? duration, Alignment? alignment, Curve? curve, int? numberOfPlays, double? effectStrength, Duration? delay})
Constructor randomly move the widget on the X and Y axis from its standard position
WidgetRestingEffects.none({AtRestAnimationSettingsBuilder? builder, Duration? duration, Alignment? alignment, Curve? curve, int? numberOfPlays, double? effectStrength, Duration? delay})
Constructor for no at rest effect
WidgetRestingEffects.pulse({AtRestAnimationSettingsBuilder? builder, Duration? duration, Alignment? alignment, Curve? curve, int? numberOfPlays, double? effectStrength, Duration? delay})
Constructor to pulse the opacity of the widget
WidgetRestingEffects.rotate({AtRestAnimationSettingsBuilder? builder, Duration? duration, Alignment? alignment, Curve? curve, int? numberOfPlays, double? effectStrength, Duration? delay})
Constructor to rotate the widget
WidgetRestingEffects.size({AtRestAnimationSettingsBuilder? builder, Duration? duration, Alignment? alignment, Curve? curve, int? numberOfPlays, double? effectStrength, Duration? delay})
Constructor to scale up and down the size of the widget
WidgetRestingEffects.slide({AtRestAnimationSettingsBuilder? builder, Duration? duration, Alignment? alignment, Curve? curve, int? numberOfPlays, double? effectStrength, Duration? delay})
Constructor to slide the widget side-to-side with a skew effect
WidgetRestingEffects.swing({AtRestAnimationSettingsBuilder? builder, Duration? duration, Alignment? alignment, Curve? curve, int? numberOfPlays, double? effectStrength, Duration? delay})
Constructor to swing the widget with rotation side-to-side
WidgetRestingEffects.vibrate({AtRestAnimationSettingsBuilder? builder, Duration? duration, Alignment? alignment, Curve? curve, int? numberOfPlays, double? effectStrength, Duration? delay})
Constructor to randomly vibrate the widget position in a sudden stepped movement
WidgetRestingEffects.wave({AtRestAnimationSettingsBuilder? builder, Duration? duration, Alignment? alignment, Curve? curve, int? numberOfPlays, double? effectStrength, Duration? delay})
Constructor to wave the text up and down

Properties

alignment Alignment?
The alignment of the effect, only used for the skew effect
getter/setter pair
builder AtRestAnimationSettingsBuilder?
AtRestAnimationSettingsBuilder The builder allows you to create your own custom combinations of the above properties for maximum flexibility, returns a AtRestAnimationSettingsBuilder see the samples.dart in the examples project for an example of using the builder
getter/setter pair
curve Curve?
The animation Curve to use
getter/setter pair
delay Duration?
getter/setter pair
duration Duration?
The Duration to play the at rest animation for
getter/setter pair
effectStrength double?
double The effect strength, varies depending on the style, but allows for larger or smaller version of the default effect. The default value being 1. So for example, if you wanted a larger scaling effect you could specify a larger effect strength (e.g. 2) and for smaller effects you could specify a smaller number (e.g. 0.5)
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
numberOfPlays int?
The number of times the animation should play for, will default to repeat if not specified (or the number of plays <= 0)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style WidgetRestingEffectStyle?
WidgetRestingEffectStyle specify either a style or a builder, a style is selected from the Enum from the default options available
getter/setter pair

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.
override