now static method

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

The current date

Implementation

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