ArrowParticle constructor

const ArrowParticle({
  1. double length = 10.0,
  2. double width = 6.0,
  3. Color? color,
})

Creates an arrow particle painter.

Parameters:

  • length: The length of the arrow in pixels. Default: 10.0
  • width: The width of the arrow head in pixels. Default: 6.0
  • color: Optional color override. If null, uses connection color.

Implementation

const ArrowParticle({this.length = 10.0, this.width = 6.0, this.color})
  : assert(length > 0, 'Length must be positive'),
    assert(width > 0, 'Width must be positive');