durationUntilTomorrow property

  1. @visibleForTesting
Duration durationUntilTomorrow

翌日の0時までの時間を取得する

Implementation

@visibleForTesting
Duration get durationUntilTomorrow {
  final now = DateTime.now();
  final tomorrow = DateTime(now.year, now.month, now.day + 1);

  return tomorrow.difference(now);
}