slide static method
Provides a convenient way to create basic sliding animations
for your text widget within the WxAnimatedText widget.
Control the direction and distance of the slide using the to
and from
offsets.
to
(required, Offset) : Defines the ending position of
the slide animation relative to the text widget's original location.
This offset specifies the horizontal and vertical movement
of the text widget during the animation.
from
(optional, Offset, defaults to Offset.zero) :
Defines the starting position of the slide animation relative to
the text widget's original location. Defaults to Offset.zero,
which means the animation starts with the text widget in its original position.
Implementation
static AnimatedRepeatableBuilder slide(
Offset to, [
Offset from = Offset.zero,
]) {
return AnimatedRepeatable.slide(to, from);
}