labelFor method

String? labelFor(
  1. HatangLocale locale
)

The label for locale, or null for an icon-only button. Like the web widget, a language without its own label shows no text.

Implementation

String? labelFor(HatangLocale locale) {
  final v = label[locale.code]?.trim();
  return v == null || v.isEmpty ? null : v;
}