getCurrentDateTime method

String getCurrentDateTime()

Implementation

String getCurrentDateTime() {
  final now = DateTime.now();
  return DateFormat('yyyy-MM-dd HH:mm:ss').format(now);
}