of static method

BsLocalizations? of(
  1. BuildContext context
)

Retrieves the BsLocalizations instance from the given BuildContext.

Returns null if the delegate is not registered in the widget tree.

Implementation

static BsLocalizations? of(BuildContext context) {
  return Localizations.of<BsLocalizations>(context, BsLocalizations);
}