AnimatedValueSlot<T extends num> constructor

const AnimatedValueSlot<T extends num>({
  1. Key? key,
  2. required Signal<T> connect,
  3. required Widget to(
    1. BuildContext context,
    2. double animatedValue
    ),
  4. Duration duration = const Duration(milliseconds: 500),
  5. Curve curve = Curves.easeOutCubic,
  6. String format(
    1. double value
    )?,
  7. VoidCallback? onAnimationComplete,
})

Implementation

const AnimatedValueSlot({
  super.key,
  required this.connect,
  required this.to,
  this.duration = const Duration(milliseconds: 500),
  this.curve = Curves.easeOutCubic,
  this.format,
  this.onAnimationComplete,
});