DiagramFlutterExtension constructor

const DiagramFlutterExtension({
  1. required String id,
  2. List<DiagramExtension> dependencies = const [],
  3. List<ShapeDefinition> shapes = const [],
  4. List<DiagramTextDefinition> textTypes = const [],
  5. List<DiagramConnectorDefinition> connectors = const [],
  6. List<DiagramConnectorRouteProvider> routes = const [],
  7. List<DiagramArrowheadDefinition> arrowheads = const [],
  8. List<DiagramPortShapeDefinition> portShapes = const [],
  9. List<DiagramContentDefinition> contents = const [],
  10. List<DiagramVerb> verbs = const [],
  11. List<DiagramToolDefinition> tools = const [],
  12. List<GraphLayoutAlgorithm<Layout>> graphLayouts = const [],
  13. List<DiagramDiagnosticRule> diagnostics = const [],
  14. List<DiagramTool>? palette,
  15. Object? options,
  16. DiagramTextLayoutEngine? textLayout,
  17. DiagramOutput? output,
  18. bool editable = false,
  19. DiagramCanvasContainerBuilder? container,
  20. List<DiagramKeyBinding> shortcuts = const [],
  21. Map<String, ShapeWidgetBuilder> widgets = const {},
  22. List<EffectDefinition> effects = const [],
  23. List<DiagramPropertyEditor> propertyEditors = const [],
  24. DiagramPasteHandler? paste,
})

Implementation

const DiagramFlutterExtension({
  required super.id,
  super.dependencies,
  super.shapes,
  super.textTypes,
  super.connectors,
  super.routes,
  super.arrowheads,
  super.portShapes,
  super.contents,
  super.verbs,
  super.tools,
  super.graphLayouts,
  super.diagnostics,
  super.palette,
  super.options,
  super.textLayout,
  super.output,
  this.editable = false,
  this.container,
  this.shortcuts = const [],
  this.widgets = const {},
  this.effects = const [],
  this.propertyEditors = const [],
  this.paste,
});