MvvmForm constructor

MvvmForm({
  1. GlobalKey<MvvmFormState>? key,
  2. required Widget child,
  3. required FutureOr<bool> save(),
  4. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
})

Implementation

MvvmForm(
    {GlobalKey<MvvmFormState>? key,
    required Widget child,
    required this.save,
    AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction})
    : super(
        child: child,
        autovalidateMode: autovalidateMode,
        key: key ?? GlobalKey<MvvmFormState>(),
      );