getCurrentDateTime static method

dynamic getCurrentDateTime()

Implementation

static getCurrentDateTime() {
  var now = DateTime.now();
  var formatter = DateFormat('yyyy-MM-dd HH:mm:ss');
  currenentDate = formatter.format(now);
}