RectangleDrawable constructor
RectangleDrawable({
- Paint? paint,
- required Size size,
- required Offset position,
- double rotationAngle = 0,
- double scale = 1,
- Set<
ObjectDrawableAssist> assists = const <ObjectDrawableAssist>{}, - Map<
ObjectDrawableAssist, Paint> assistPaints = const <ObjectDrawableAssist, Paint>{}, - bool locked = false,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(5)),
Creates a new RectangleDrawable with the given size
, paint
and borderRadius
.
Implementation
RectangleDrawable({
Paint? paint,
required Size size,
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,
this.borderRadius = const BorderRadius.all(Radius.circular(5)),
}) : paint = paint ?? ShapeDrawable.defaultPaint,
super(
size: size,
position: position,
rotationAngle: rotationAngle,
scale: scale,
assists: assists,
assistPaints: assistPaints,
locked: locked,
hidden: hidden);