chore: Follow up sameEnvironment calc
This commit is contained in:
parent
c89c95eaab
commit
d7c2d1bdc7
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ extension DateTimeExtension on DateTime {
|
|||
/// Checks if two DateTimes are close enough to belong to the same
|
||||
/// environment.
|
||||
bool sameEnvironment(DateTime prevTime) =>
|
||||
prevTime.difference(this) < const Duration(hours: 1);
|
||||
difference(prevTime) < const Duration(hours: 1);
|
||||
|
||||
/// Returns a simple time String.
|
||||
String localizedTimeOfDay(BuildContext context) =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue