animatedBuilder method

Widget animatedBuilder({
  1. required Listenable listenable,
  2. Key? key,
  3. Widget? child,
})

Listens to a Listenable, often an animation, and rebuilds the widget. Identical to listenableBuilder.

Implementation

Widget animatedBuilder({
  required Listenable listenable,
  Key? key,
  Widget? child,
}) {
  return AnimatedBuilder(
    key: key,
    animation: listenable,
    builder: (_, __) => this,
  );
}