of method Null safety

Strings of(
  1. BuildContext context
)

Implementation

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