createController method

FAnimationController createController({
  1. required double duration,
  2. void onComplete()?,
  3. void onFrame(
    1. double value,
    2. double elapsed
    )?,
})

Implementation

FAnimationController createController({
  required double duration,
  void Function()? onComplete,
  void Function(double value, double elapsed)? onFrame,
}) {
  final controller = FAnimationController(
    duration: duration,
    onComplete: onComplete,
    onFrame: onFrame,
  );
  _controllers.add(controller);
  return controller;
}