getTimeStampedFormated method

String getTimeStampedFormated()

Formats the timestamp in a readable format.

Returns: A string in the format 'yyyy-MM-dd HH:mm:ss.SSS'.

Implementation

String getTimeStampedFormated() {
  return DateFormat('yyyy-MM-dd HH:mm:ss.SSS')
      .format(timeStamp ?? DateTime.now());
}