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