MainFormView constructor Null safety

MainFormView(
  1. {required List fields,
  2. String btnTitle = "Submit",
  3. required dynamic onSubmit(
    1. Map<String, dynamic>
    ),
  4. Widget? child,
  5. Map<String, dynamic> begainVal = const <String, dynamic>{}}
)

Implementation

MainFormView(
    {required this.fields,
    this.btnTitle = "Submit",
    required this.onSubmit,
    this.child,
    this.begainVal = const <String, dynamic>{}});