timestampToHumanReadable function

String? timestampToHumanReadable(
  1. double? timestamp,
  2. DateFormat format
)

Implementation

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