of static method

StringLocaleController of(
  1. BuildContext context
)

Implementation

static StringLocaleController of(BuildContext context) {
  final s = context.findAncestorStateOfType<StringLocaleController>();
  assert(s != null, 'No StringLocaleScope in context');
  return s!;
}