useAnimationBuilder method

void useAnimationBuilder({
  1. required Widget builder(
    1. BuildContext context,
    2. Widget child
    ),
  2. required AnimationController animation,
})

Implementation

void useAnimationBuilder({
  required Widget Function(BuildContext context, Widget child) builder,
  required AnimationController animation,
}) =>
    _add(
      (w) => AnimatedBuilder(
        animation: animation,
        builder: (context, child) => builder(context, w),
        child: w,
      ),
    );