animateToDate method Null safety

Future<void> animateToDate(
  1. DateTime date,
  2. {required Duration duration,
  3. required Curve curve}
)

Implementation

Future<void> animateToDate(DateTime date,
    {required Duration duration, required Curve curve}) {
  return super.animateToPage(
    _dateToPage(date),
    duration: duration,
    curve: curve,
  );
}