getTimestamp method

String getTimestamp()
inherited

Returns a string representation of a timestamp.

Implementation

String getTimestamp() {
  final nowTime = DateTime.now();

  return DateTime(
    nowTime.year,
    nowTime.month,
    nowTime.day,
    nowTime.hour,
    nowTime.minute,
    nowTime.second,
  ).toString();
}