SplashAnimation class

Configures a single animation step for the splash screen.

Use the static factory constructors for common presets, or construct directly for full control.

Constructors

SplashAnimation({required SplashAnimationType type, int durationMs = 800, Curve curve = Curves.easeInOut, List<SplashAnimation>? steps, int delayMs = 0})
Creates a SplashAnimation with full configuration.
const
SplashAnimation.fadeIn({int durationMs = 800, Curve curve = Curves.easeIn, int delayMs = 0})
Fade-in animation.
factory
SplashAnimation.fadeScale({int durationMs = 900, Curve curve = Curves.easeOut, int delayMs = 0})
Combined fade + scale animation.
factory
SplashAnimation.none()
No animation – widget appears immediately.
factory
SplashAnimation.rotate({int durationMs = 1000, Curve curve = Curves.linear, int delayMs = 0})
Rotation animation (full 360°).
factory
SplashAnimation.scaleDown({int durationMs = 800, Curve curve = Curves.easeOut, int delayMs = 0})
Scale-down animation.
factory
SplashAnimation.scaleUp({int durationMs = 800, Curve curve = Curves.elasticOut, int delayMs = 0})
Scale-up animation.
factory
SplashAnimation.sequence(List<SplashAnimation> steps)
Sequence of multiple animation steps played one after another.
factory
SplashAnimation.slideDown({int durationMs = 700, Curve curve = Curves.easeOut, int delayMs = 0})
Slide-down animation.
factory
SplashAnimation.slideLeft({int durationMs = 700, Curve curve = Curves.easeOut, int delayMs = 0})
Slide-left animation.
factory
SplashAnimation.slideRight({int durationMs = 700, Curve curve = Curves.easeOut, int delayMs = 0})
Slide-right animation.
factory
SplashAnimation.slideUp({int durationMs = 700, Curve curve = Curves.easeOut, int delayMs = 0})
Slide-up animation.
factory

Properties

curve → Curve
The animation curve to use.
final
delayMs → int
Delay before starting the animation in milliseconds.
final
durationMs → int
Duration of the animation in milliseconds.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
steps → List<SplashAnimation>?
For SplashAnimationType.sequence, the list of animation steps.
final
totalDuration → Duration
Total duration including delay.
no setter
type → SplashAnimationType
The animation type to apply.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited