asString static method
dynamic
asString(
- dynamic obj
Implementation
static asString(dynamic obj) {
if (obj is DateTime) {
// JS date format toString
return DateFormat('EEE MMM dd yyyy HH:mm:ss').format(obj);
}
return obj?.toString() ?? '';
}