msToDateTime static method

String msToDateTime(
  1. int ms, {
  2. String format = 'dd/MM/yyyy',
})
Mixins.msToDateTime(1625386377499, format: 'D, d F Y h:i:s'); // Sabtu, 20 Maret 2021

Implementation

static String msToDateTime(int ms, {String format = 'dd/MM/yyyy'}) =>
    DateTime.fromMillisecondsSinceEpoch(ms).format(format);