startOfMonth static method

DateTime? startOfMonth(
  1. DateTime? dateTime
)

Implementation

static DateTime? startOfMonth(DateTime? dateTime) {
  if (dateTime == null) return null;
  return DateTime(dateTime.year, dateTime.month, 1);
}