of<T> static method
DiagramPropertyEditor
of<T>(
- Widget build(
- BuildContext context,
- DiagramPropertyField<
T> field
- DiagramPropertyLayout layout = DiagramPropertyLayout.row,
The editor of custom properties of type T, placed by layout.
Implementation
static DiagramPropertyEditor of<T>(
Widget Function(BuildContext context, DiagramPropertyField<T> field)
build, {
DiagramPropertyLayout layout = DiagramPropertyLayout.row,
}) => DiagramPropertyEditor._(
T,
(context, field) => build(context, field.asType<T>()),
layout,
);