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,
}) =>
    useParent(
      (w) => w
        ..useAnimationBuilder(
          animation: animation,
          builder: (context, child) => builder(context, w),
        ),
    );