of<TKey> static method

LoFormState<TKey> of<TKey>(
  1. BuildContext context
)

Implementation

static LoFormState<TKey> of<TKey>(BuildContext context) {
  final result = context.dependOnInheritedWidgetOfExactType<LoScope<TKey>>();
  assert(result != null, 'No $LoScope<$TKey> found in context');
  return result!.notifier!;
}