LineDrawable constructor

LineDrawable({
  1. Paint? paint,
  2. required double length,
  3. required Offset position,
  4. double rotationAngle = 0,
  5. double scale = 1,
  6. Set<ObjectDrawableAssist> assists = const <ObjectDrawableAssist>{},
  7. Map<ObjectDrawableAssist, Paint> assistPaints = const <ObjectDrawableAssist, Paint>{},
  8. bool locked = false,
  9. bool hidden = false,
})

Creates a new LineDrawable with the given length and paint.

Implementation

LineDrawable({
  Paint? paint,
  required double length,
  required Offset position,
  double rotationAngle = 0,
  double scale = 1,
  Set<ObjectDrawableAssist> assists = const <ObjectDrawableAssist>{},
  Map<ObjectDrawableAssist, Paint> assistPaints =
      const <ObjectDrawableAssist, Paint>{},
  bool locked = false,
  bool hidden = false,
})  : paint = paint ?? ShapeDrawable.defaultPaint,
      super(
          length: length,
          position: position,
          rotationAngle: rotationAngle,
          scale: scale,
          assists: assists,
          assistPaints: assistPaints,
          locked: locked,
          hidden: hidden);