Skip to content

Commit 23ec82b

Browse files
author
FELIPE EDUARDO MORSCHEL
committed
Fixed extensions formatting 120 line width
1 parent c94d374 commit 23ec82b

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

lib/src/extensions.dart

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -206,30 +206,24 @@ extension DateTimeTimeExtension on DateTime {
206206
}
207207

208208
/// 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);
212211

213212
/// 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);
217215

218216
/// 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);
221218

222219
/// 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);
225221

226222
/// 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);
229224

230225
/// 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);
233227
}
234228

235229
extension DurationTimeExtension on Duration {

0 commit comments

Comments
 (0)