ManifoldEditor<M> constructor

const ManifoldEditor<M>({
  1. Key? key,
  2. ManifoldContainerStyle containerStyle = const DefaultManifoldContainerStyle(),
  3. M? edit,
  4. bool viewOnly = false,
  5. bool enableHeader = true,
  6. bool enableSearch = true,
  7. bool enableRawEditor = true,
  8. required void onChanged(
    1. M,
    2. bool
    ),
  9. bool root = true,
  10. bool inlineSubObjects = false,
  11. Map<Type, ManifoldEditorOverrideBuilder>? editorOverrides,
  12. BehaviorSubject<String?>? rawSearch,
  13. ManifoldPropertyDecorator decorator = const DynamicPropertyDecorator(widthDecorators: {0 : CompactPropertyDecorator(), 500 : DensePropertyDecorator()}),
  14. ManifoldDecoratorBuilder? decoratorBuilder,
  15. Widget? propertyEditorBuilder(
    1. ManifoldContext context
    )?,
})

Implementation

const ManifoldEditor({
  super.key,
  this.containerStyle = const DefaultManifoldContainerStyle(),
  this.edit,
  this.viewOnly = false,
  this.enableHeader = true,
  this.enableSearch = true,
  this.enableRawEditor = true,
  required this.onChanged,
  this.root = true,
  this.inlineSubObjects = false,
  this.editorOverrides,
  this.rawSearch,
  this.decorator = const DynamicPropertyDecorator(
    widthDecorators: {
      0: CompactPropertyDecorator(),
      500: DensePropertyDecorator(),
    },
  ),
  this.decoratorBuilder,
  this.propertyEditorBuilder,
});