now method

Date now(
  1. {bool isUtc = false}
)

Returns the current date.

Implementation

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