ObjectDrawable constructor
const
ObjectDrawable({
- required Offset position,
- double rotationAngle = 0,
- double scale = 1,
- Set<
ObjectDrawableAssist> assists = const <ObjectDrawableAssist>{}, - Map<
ObjectDrawableAssist, Paint> assistPaints = const <ObjectDrawableAssist, Paint>{}, - bool locked = false,
Default constructor for ObjectDrawable.
Implementation
const ObjectDrawable({
required this.position,
this.rotationAngle = 0,
double scale = 1,
this.assists = const <ObjectDrawableAssist>{},
this.assistPaints = const <ObjectDrawableAssist, Paint>{},
this.locked = false,
bool hidden = false,
}) : scale = scale < minScale ? minScale : scale,
super(hidden: hidden);