@@ -206,30 +206,24 @@ extension DateTimeTimeExtension on DateTime {
206
206
}
207
207
208
208
/// Returns the Monday of this week
209
- DateTime get firstDayOfWeek => isUtc
210
- ? DateTime .utc (year, month, day + 1 - weekday)
211
- : DateTime (year, month, day + 1 - weekday);
209
+ DateTime get firstDayOfWeek =>
210
+ isUtc ? DateTime .utc (year, month, day + 1 - weekday) : DateTime (year, month, day + 1 - weekday);
212
211
213
212
/// Returns the Sunday of this week
214
- DateTime get lastDayOfWeek => isUtc
215
- ? DateTime .utc (year, month, day + 7 - weekday)
216
- : DateTime (year, month, day + 7 - weekday);
213
+ DateTime get lastDayOfWeek =>
214
+ isUtc ? DateTime .utc (year, month, day + 7 - weekday) : DateTime (year, month, day + 7 - weekday);
217
215
218
216
/// Returns the first day of this month
219
- DateTime get firstDayOfMonth =>
220
- isUtc ? DateTime .utc (year, month, 1 ) : DateTime (year, month, 1 );
217
+ DateTime get firstDayOfMonth => isUtc ? DateTime .utc (year, month, 1 ) : DateTime (year, month, 1 );
221
218
222
219
/// Returns the last day of this month (considers leap years)
223
- DateTime get lastDayOfMonth =>
224
- isUtc ? DateTime .utc (year, month + 1 , 0 ) : DateTime (year, month + 1 , 0 );
220
+ DateTime get lastDayOfMonth => isUtc ? DateTime .utc (year, month + 1 , 0 ) : DateTime (year, month + 1 , 0 );
225
221
226
222
/// Returns the first day of this year
227
- DateTime get firstDayOfYear =>
228
- isUtc ? DateTime .utc (year, 1 , 1 ) : DateTime (year, 1 , 1 );
223
+ DateTime get firstDayOfYear => isUtc ? DateTime .utc (year, 1 , 1 ) : DateTime (year, 1 , 1 );
229
224
230
225
/// Returns the last day of this year
231
- DateTime get lastDayOfYear =>
232
- isUtc ? DateTime .utc (year, 12 , 31 ) : DateTime (year, 12 , 31 );
226
+ DateTime get lastDayOfYear => isUtc ? DateTime .utc (year, 12 , 31 ) : DateTime (year, 12 , 31 );
233
227
}
234
228
235
229
extension DurationTimeExtension on Duration {
0 commit comments