of<T> static method

DiagramPropertyEditor of<T>(
  1. Widget build(
    1. BuildContext context,
    2. DiagramPropertyField<T> field
    ), {
  2. 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,
);