>(

context

MaterialLocalizations

);

This particular Localizations.of() expression is used frequently,
so the MaterialLocalizations class provides a convenient shorthand:

static

MaterialLocalizations

of

BuildContext

context

return

Localizations

of

MaterialLocalizations

>(

context

MaterialLocalizations

);

/// References to the localized values defined by MaterialLocalizations

/// are typically written like this:

tooltip:

MaterialLocalizations

of

context

backButtonTooltip

Defining a class for the app’s localized resources