mirror of
https://github.com/flutter/samples.git
synced 2025-11-11 23:39:14 +00:00
Upgrading samples to flutter_lints, part 1 of n (#804)
This commit is contained in:
@@ -60,6 +60,6 @@ Iterable<List<Entry>> _entriesInRangeImpl(
|
||||
}
|
||||
|
||||
yield es;
|
||||
d = d.add(Duration(days: 1));
|
||||
d = d.add(const Duration(days: 1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,6 @@ extension DayUtils on DateTime {
|
||||
|
||||
/// Checks that the two [DateTime]s share the same date.
|
||||
bool isSameDay(DateTime d2) {
|
||||
return this.year == d2.year && this.month == d2.month && this.day == d2.day;
|
||||
return year == d2.year && month == d2.month && day == d2.day;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user