toDateWithSlashes property
String
get
toDateWithSlashes
Formats date as '24/02/2026'.
Example:
final date = DateTime(2026, 2, 24);
final formatted = date.toDateWithSlashes;
// returns: '24/02/2026'
Implementation
String get toDateWithSlashes =>
'${day.toString().padLeft(2, '0')}/${month.toString().padLeft(2, '0')}/$year';