of static method

Implementation

static BdayaLocalizations of(BuildContext context) {
  final instance = BdayaLocalizations.maybeOf(context);
  assert(instance != null,
      'No instance of BdayaLocalizations present in the widget tree. Did you add BdayaLocalizations.delegate in localizationsDelegates?');
  return instance!;
}