EditorBuilder typedef

EditorBuilder = EditorBase Function({Object? customData, Key? key, void onUpdatedProperty(dynamic value)?, required List<Inspectable> owners, required String propertyName})

Factory function signature for creating property editor instances.

Used to register custom editors in Inspector.editors, keyed by the property's runtime Type. Each factory receives the owning objects and property name, plus optional customData and an onUpdatedProperty callback.

Example registration:

Inspector(
  objects: [myObj],
  editors: {
    MyType: ({key, required owners, required propertyName,
              customData, onUpdatedProperty}) =>
        MyTypeEditor(key: key, owners: owners, propertyName: propertyName),
  },
)

Implementation

typedef EditorBuilder =
    EditorBase Function({
      Key? key,
      required List<Inspectable> owners,
      required String propertyName,
      Object? customData,
      void Function(dynamic value)? onUpdatedProperty,
    });