of static method

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

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

Implementation

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