ControlledAnimation constructor

ControlledAnimation(
  1. AnimationController _controller
)

Creates a ControlledAnimation that wraps the given AnimationController.

Parameters

  • _controller - The underlying animation controller to use for timing.

Example

final controller = AnimationController(
  vsync: this,
  duration: const Duration(milliseconds: 200),
);
final animation = ControlledAnimation(controller);

Implementation

ControlledAnimation(this._controller);