of static method

CPLocalizations? of(
  1. BuildContext context
)
override

Returns the localized resources object of type CPLocalizations for the widget tree that corresponds to the given context.

Returns null if no resources object of type CPLocalizations exists within the given context.

Implementation

static CPLocalizations? of(BuildContext context) =>
    Localizations.of<CPLocalizations>(context, CPLocalizations);