AnimatedBuilder constructor Null safety
- {Key? key,
- required Listenable animation,
- required TransitionBuilder builder,
- Widget? child}
Creates an animated builder.
The animation
and builder arguments must not be null.
Implementation
const AnimatedBuilder({
super.key,
required Listenable animation,
required this.builder,
this.child,
}) : assert(animation != null),
assert(builder != null),
super(listenable: animation);