getNowDateStr static method

String getNowDateStr({
  1. String format = DateFormats.full,
})

获取当前时间字符串.(yyyy-MM-dd HH:mm:ss)

Implementation

static String getNowDateStr({String format = DateFormats.full}) {
  return formatDate(DateTime.now(), format: format);
}