Get current timestamp in flutter or dart

127

var timestamp = DateTime.now().millisecondsSinceEpoch.toString()
print(timestamp);

Comments

Submit
0 Comments