useZardFormContext function

ZardFormController useZardFormContext()

Resolves the nearest ZardFormController from context. Throws if none is found. Use inside a HookWidget descendant of ZardForm.

Implementation

ZardFormController useZardFormContext() {
  final context = useContext();
  return ZardFormScope.of(context);
}