ShapeDrawable constructor

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

Default constructor for ObjectDrawable.

Implementation

ShapeDrawable({
  Paint? paint,
  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 ?? defaultPaint,
      super(
          position: position,
          rotationAngle: rotationAngle,
          scale: scale,
          assists: assists,
          assistPaints: assistPaints,
          locked: locked,
          hidden: hidden);