formattedDate property
String
get
formattedDate
Returns the date in dd/MM/yyyy format.
Example:
DateTime(2025, 7, 26).formattedDate; // "26/07/2025"
Implementation
String get formattedDate =>
"${day.toString().padLeft(2, '0')}/${month.toString().padLeft(2, '0')}/$year";