hasMaterialL10n property

bool hasMaterialL10n

Returns true if the current BuildContext has a MaterialLocalizations instance associated with it.

Implementation

bool get hasMaterialL10n =>
    Localizations.of<MaterialLocalizations?>(this, MaterialLocalizations) !=
    null;