renderProperty method
Iterable<Widget>
renderProperty(
- BuildContext context,
- IMetaFormContext metaForm,
- HandledPaths paths,
- SunnyFormFieldState state, {
- 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,
),
];
}