of static method

Implementation

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