nmTaxSaleStatusLabel function

String nmTaxSaleStatusLabel(
  1. NmRealEstateL10n l,
  2. String code
)

Localized label of a tax sale status code; unknown codes are shown as given.

Implementation

String nmTaxSaleStatusLabel(NmRealEstateL10n l, String code) => switch (NmTaxSaleStatus.parse(code)) {
  NmTaxSaleStatus.upcoming => l.auctionUpcoming,
  NmTaxSaleStatus.open => l.auctionOpen,
  NmTaxSaleStatus.closed => l.auctionClosed,
  null => code,
};