animateTo method

Future<void> animateTo(
  1. FTime value, {
  2. Duration duration = const Duration(milliseconds: 300),
  3. Curve curve = Curves.easeOutCubic,
})
inherited

Animates the controller to the given value.

Implementation

Future<void> animateTo(
  T value, {
  Duration duration = const Duration(milliseconds: 300),
  Curve curve = Curves.easeOutCubic,
}) async {
  if (rawValue != value) {
    await rawAnimateTo(value, duration, curve);
  }
}