firstDayOfMonth property

date get firstDayOfMonth

Returns the first day of the month for the given date.

Implementation

date get firstDayOfMonth => DateTime(year, month, 1);