class TimeUtil{ /// 获取时间戳,单位:秒 static String getNowTime() { int timestamp = (DateTime.now().millisecondsSinceEpoch / 1000).floor(); return "$timestamp"; } }