获取当前时间戳(Millisecond)
int getTimeStamp({bool isSecond = false}) { int timestamp = DateTime.now().millisecondsSinceEpoch; if (isSecond) { timestamp = timestamp ~/ 1000; } return timestamp; }