createAnimationController method

AnimationController createAnimationController({
  1. double? value,
  2. Duration? duration,
  3. Duration? reverseDuration,
  4. double lowerBound = 0.0,
  5. double upperBound = 1.0,
  6. int fps = 30,
  7. Object? id,
})

Creates and registers an AnimationController.

The controller is automatically disposed when this State is disposed. Its tick messages are automatically dispatched by handleUpdate.

All parameters are forwarded to AnimationController.new.

Implementation

AnimationController createAnimationController({
  double? value,
  Duration? duration,
  Duration? reverseDuration,
  double lowerBound = 0.0,
  double upperBound = 1.0,
  int fps = 30,
  Object? id,
}) {
  final controller = AnimationController(
    value: value,
    duration: duration,
    reverseDuration: reverseDuration,
    lowerBound: lowerBound,
    upperBound: upperBound,
    fps: fps,
    id: id,
  );
  _controllers.add(controller);
  return controller;
}