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
@override
Iterable<Widget> renderProperty(BuildContext context,
IMetaFormContext metaForm, HandledPaths paths, SunnyFormFieldState state,
{Key? key}) {
// final prop =
// paths.paths.values.firstOrNull ?? metaForm.schema.getByPath(paths.path);
return [
PhoneWithExtensionControl(
key: key,
onChange: state.updateValue,
initialValue: state.cast<IPhoneWithExtension>().value,
)
];
}