label method

String label(
  1. BuildContext context
)

Localized name.

Implementation

String label(BuildContext context) {
  final l = NmRealEstate.l10n(context);
  return switch (this) {
    NmPropertyLayerType.tax => l.layerTax,
    NmPropertyLayerType.owner => l.layerOwner,
    NmPropertyLayerType.market => l.layerMarket,
    NmPropertyLayerType.condition => l.layerCondition,
    NmPropertyLayerType.legal => l.layerLegal,
    NmPropertyLayerType.location => l.layerLocation,
  };
}