of static method
Implementation
static FormiState of(BuildContext context) {
final result = context.findAncestorStateOfType<FormiState>();
assert(
result != null,
'Could not find FormiState. Make sure your form is wrapped into a Formi component',
);
return result!;
}