getCurrentDateTime static method

String getCurrentDateTime({
  1. String format = Format.fyyyyMMddHHmmss,
})

get current datetime with format

Implementation

static String getCurrentDateTime({String format = Format.fyyyyMMddHHmmss}) {
  return DateFormat(format).format(DateTime.now());
}