epochToDateTime function

DateTime epochToDateTime({
  1. int epoch = 0,
})

convert epoch to UTC timestamp

Implementation

DateTime epochToDateTime({int epoch = 0}) =>
    DateTime.fromMillisecondsSinceEpoch(epochToMilliseconds(epoch: epoch),
        isUtc: true);