of static method
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!;
}