LineShape constructor

LineShape({
  1. double length = 150,
  2. double width = 4,
  3. Offset location = const Offset(0, 0),
  4. Color color = Colors.transparent,
  5. int zIndex = 0,
  6. PaintingStyle style = PaintingStyle.stroke,
  7. int reactSize = 10,
})

Implementation

LineShape({
  double length = 150,
  double width = 4,
  super.location,
  super.color,
  super.zIndex,
  this.style = PaintingStyle.stroke,
  super.reactSize,
}) {
  _endOffset = location.translate(length, 0);
  super.size = Size(length, width);
}