NodeFlowTheme constructor

const NodeFlowTheme({
  1. required NodeTheme nodeTheme,
  2. required ConnectionTheme connectionTheme,
  3. required ConnectionTheme temporaryConnectionTheme,
  4. Duration connectionAnimationDuration = const Duration(seconds: 2),
  5. required PortTheme portTheme,
  6. required LabelTheme labelTheme,
  7. Color backgroundColor = Colors.white,
  8. Color gridColor = const Color(0xFF919191),
  9. double gridSize = 20.0,
  10. double gridThickness = 0.5,
  11. GridStyle gridStyle = GridStyles.dots,
  12. Color selectionColor = const Color(0x3300BCD4),
  13. Color selectionBorderColor = const Color(0xFF00BCD4),
  14. double selectionBorderWidth = 1.0,
  15. SystemMouseCursor cursorStyle = SystemMouseCursors.basic,
  16. SystemMouseCursor dragCursorStyle = SystemMouseCursors.grabbing,
  17. SystemMouseCursor nodeCursorStyle = SystemMouseCursors.click,
  18. SystemMouseCursor portCursorStyle = SystemMouseCursors.precise,
  19. bool debugMode = false,
})

Implementation

const NodeFlowTheme({
  required this.nodeTheme,
  required this.connectionTheme,
  required this.temporaryConnectionTheme,
  this.connectionAnimationDuration = const Duration(seconds: 2),
  required this.portTheme,
  required this.labelTheme,
  this.backgroundColor = Colors.white,
  this.gridColor = const Color(0xFF919191),
  this.gridSize = 20.0,
  this.gridThickness = 0.5,
  this.gridStyle = GridStyles.dots,
  this.selectionColor = const Color(0x3300BCD4),
  this.selectionBorderColor = const Color(0xFF00BCD4),
  this.selectionBorderWidth = 1.0,
  this.cursorStyle = SystemMouseCursors.basic,
  this.dragCursorStyle = SystemMouseCursors.grabbing,
  this.nodeCursorStyle = SystemMouseCursors.click,
  this.portCursorStyle = SystemMouseCursors.precise,
  this.debugMode = false,
});