hasMaterialL10n property
Returns true
if the current BuildContext has a MaterialLocalizations
instance associated with it.
Implementation
@useResult
bool get hasMaterialL10n =>
Localizations.of<MaterialLocalizations?>(this, MaterialLocalizations) !=
null;