MetaFormControl<M>.embedded constructor

MetaFormControl<M>.embedded({
  1. Key? widgetKey,
  2. required SunnyFormFieldState<M> fieldState,
  3. required JsonPath basePath,
  4. required JsonPath path,
  5. required MetaFormContext metaForm,
  6. String? label,
  7. bool checkAll = true,
  8. String? placeholder,
})

Implementation

MetaFormControl.embedded({
  Key? widgetKey,
  required SunnyFormFieldState<M> fieldState,
  required JsonPath basePath,
  required JsonPath path,
  required MetaFormContext metaForm,
  String? label,
  bool checkAll = true,
  String? placeholder,
}) : this._(
        widgetKey: widgetKey,
        fieldState: fieldState,
        basePath: basePath.verifyNotRoot,
        fieldPath: path,
        metaFormField: metaForm.path(basePath, path),
        label: label,
        checkAll: checkAll,
        placeholder: placeholder,
      );