of static method

FormiState of(
  1. BuildContext context
)

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!;
}