How to get the current epoch time in dart code example Example: flutter get millis time void main() { print(DateTime.now().millisecondsSinceEpoch); }