label method

String label(
  1. BuildContext context
)

Localized name.

Implementation

String label(BuildContext context) {
  final l = NmRealEstate.l10n(context);
  return switch (this) {
    NmMapLayerType.liens => l.mapLayerLiens,
    NmMapLayerType.bankOwned => l.mapLayerBankOwned,
    NmMapLayerType.preForeclosure => l.mapLayerPreForeclosure,
    NmMapLayerType.auction => l.mapLayerAuction,
    NmMapLayerType.favorites => l.mapLayerFavorites,
    NmMapLayerType.schoolDistricts => l.mapLayerSchoolDistricts,
    NmMapLayerType.floodZones => l.mapLayerFloodZones,
    NmMapLayerType.censusTracts => l.mapLayerCensusTracts,
  };
}