of static method

ShadFormState of(
  1. BuildContext context
)

Returns the nearest ShadFormState from the widget tree Throws assertion error if not found

Implementation

static ShadFormState of(BuildContext context) {
  final state = maybeOf(context);
  assert(state != null, 'No ShadFormState found in context');
  return state!;
}