materialL10n property
Returns the MaterialLocalizations instance for the current context.
Example usage:
void example(BuildContext context) {
final String ok = context.materialL10n.okButtonLabel;
assert(ok.isNotEmpty);
}
void main() {}
Implementation
@useResult
MaterialLocalizations get materialL10n => MaterialLocalizations.of(this);