AnimatedBuilder constructor

AnimatedBuilder({
  1. required Listenable animation,
  2. required Widget builder(
    1. BuildContext context,
    2. Widget? child
    ),
  3. Widget? child,
  4. Key? key,
})

Creates a widget that rebuilds when animation notifies.

Implementation

AnimatedBuilder({
  required this.animation,
  required this.builder,
  this.child,
  super.key,
});