getDateTimeByMs static method

DateTime getDateTimeByMs(
  1. int ms, {
  2. bool isUtc = false,
})

get DateTime By Milliseconds.

Implementation

static DateTime getDateTimeByMs(int ms, {bool isUtc = false}) {
  return DateTime.fromMillisecondsSinceEpoch(ms, isUtc: isUtc);
}