timestampToHumanReadable function
Implementation
String? timestampToHumanReadable(double? timestamp, DateFormat format) {
return (timestamp == null)
? null
: format.format(
DateTime.fromMillisecondsSinceEpoch((timestamp * 1000).toInt()));
}