getTextStampDate static method

String getTextStampDate({
  1. required bool timeSwitch,
  2. required bool dateSwitch,
})

Returns a formatted timestamp string for text stamp usage.

This is a convenience wrapper around formatDateTime.

  • dateSwitch controls whether the date part is included.
  • timeSwitch controls whether the time part is included.

Implementation

static String getTextStampDate({
  required bool timeSwitch,
  required bool dateSwitch,
}) {
  return formatDateTime(timeSwitch: timeSwitch, dateSwitch: dateSwitch);
}