now static method

Date now({
  1. bool utc = false,
})

The current date

Implementation

static Date now({bool utc = false}) {
  final now = DateTime.now();
  if (utc) return now.toUtc().toDate();

  return now.toDate();
}