goToToday method

dynamic goToToday (
  1. {Duration duration,
  2. Curve curve: Curves.bounceInOut}
)

scroll to now

it will do animate while duration is not null

Implementation

goToToday({
  Duration duration,
  Curve curve = Curves.bounceInOut
}) {
  var now = DateTime.now();
  goToDate(dateTime: now, duration: duration, curve: curve);
}