WorkflowConfig constructor

const WorkflowConfig({
  1. Color primaryColor = Colors.blue,
  2. Color secondaryColor = Colors.grey,
  3. Color backgroundColor = Colors.white,
  4. double nodeWidth = 200.0,
  5. double nodeHeight = 120.0,
  6. double gridSize = 50.0,
  7. double connectionStrokeWidth = 2.0,
  8. bool showGrid = true,
  9. bool enableSnapping = false,
  10. double snapDistance = 10.0,
  11. Duration animationDuration = const Duration(milliseconds: 300),
  12. Map<String, dynamic> customProperties = const {},
})

Implementation

const WorkflowConfig({
  this.primaryColor = Colors.blue,
  this.secondaryColor = Colors.grey,
  this.backgroundColor = Colors.white,
  this.nodeWidth = 200.0,
  this.nodeHeight = 120.0,
  this.gridSize = 50.0,
  this.connectionStrokeWidth = 2.0,
  this.showGrid = true,
  this.enableSnapping = false,
  this.snapDistance = 10.0,
  this.animationDuration = const Duration(milliseconds: 300),
  this.customProperties = const {},
});