shortDate property
String
shortDate
Formats the DateTime
into a short date format, which is locale dependent.
Example:
print(DateTime.now().shortDate); // Output: "4/7/2023" for en_US locale
Implementation
String get shortDate => DateFormats.shortDate.format(this);