durationUntilTomorrow property
翌日の0時までの時間を取得する
Implementation
@visibleForTesting
Duration get durationUntilTomorrow {
final now = DateTime.now();
final tomorrow = DateTime(now.year, now.month, now.day + 1);
return tomorrow.difference(now);
}
翌日の0時までの時間を取得する
@visibleForTesting
Duration get durationUntilTomorrow {
final now = DateTime.now();
final tomorrow = DateTime(now.year, now.month, now.day + 1);
return tomorrow.difference(now);
}