useForm method

void useForm({
  1. Key? key,
  2. AutovalidateMode? autovalidateMode,
  3. Future<bool> onWillPop()?,
  4. void onChanged()?,
})

Implementation

void useForm({
  Key? key,
  AutovalidateMode? autovalidateMode,
  Future<bool> Function()? onWillPop,
  void Function()? onChanged,
}) =>
    _add(
      (w) => Form(
        key: key,
        child: w,
        autovalidateMode: autovalidateMode,
        onWillPop: onWillPop,
        onChanged: onChanged,
      ),
    );