renderProperty method

Iterable<Widget> renderProperty(
  1. BuildContext context,
  2. IMetaFormContext metaForm,
  3. HandledPaths paths,
  4. SunnyFormFieldState state, {
  5. Key? key,
})
override

Renders a widget (or null) for a provided HandledPaths (see acceptProperties)

Implementation

Iterable<Widget> renderProperty(BuildContext context,
    IMetaFormContext metaForm, HandledPaths paths, SunnyFormFieldState state,
    {Key? key}) {
  // final prop = metaForm.schema.getByPath(paths.path);
  return [
    PhysicalLocationTypeaheadControl(
      key: key,
      onChange: state.updateValue,
      initialValue: state.cast<IPhysicalLocation>().value,
    ),
  ];
}