expirationDate property

String expirationDate

Implementation

String get expirationDate {
  if (expDate == null) return '';
  if (expDate!.length < 4) return expDate!;
  final dayString = expDate!.substring(0, 2);
  final monthString = expDate!.substring(2, 4);
  return '$monthString/$dayString';
}