CountdownAnimationConfig class

Animation configuration for countdown timer

Constructors

CountdownAnimationConfig({bool enabled = true, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.easeInOut, bool enablePulseAnimation = true, int pulseThreshold = 10, bool enableShakeAnimation = true, bool enableScaleAnimation = true, bool enableFadeAnimation = true, Widget customAnimationBuilder(Widget child, Animation<double> animation)?})
const

Properties

curve Curve
Animation curve for transitions
final
customAnimationBuilder Widget Function(Widget child, Animation<double> animation)?
Custom animation builder
final
duration Duration
Animation duration for transitions
final
enabled bool
Whether to enable animations
final
enableFadeAnimation bool
Whether to enable fade animation on state changes
final
enablePulseAnimation bool
Whether to enable pulse animation when time is low
final
enableScaleAnimation bool
Whether to enable scale animation on state changes
final
enableShakeAnimation bool
Whether to enable shake animation when timer finishes
final
hashCode int
The hash code for this object.
no setterinherited
pulseThreshold int
Pulse animation threshold (seconds remaining)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? enabled, Duration? duration, Curve? curve, bool? enablePulseAnimation, int? pulseThreshold, bool? enableShakeAnimation, bool? enableScaleAnimation, bool? enableFadeAnimation, Widget customAnimationBuilder(Widget child, Animation<double> animation)?}) CountdownAnimationConfig
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.
inherited