1
0
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:
Brett Morgan
2021-06-05 12:24:28 +10:00
committed by GitHub
parent 14921d0c06
commit 936d1fdaae
230 changed files with 2361 additions and 2444 deletions

View File

@@ -60,6 +60,6 @@ Iterable<List<Entry>> _entriesInRangeImpl(
}
yield es;
d = d.add(Duration(days: 1));
d = d.add(const Duration(days: 1));
}
}

View File

@@ -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;
}
}