ObjectDrawable constructor

const ObjectDrawable({
  1. required Offset position,
  2. double rotationAngle = 0,
  3. double scale = 1,
  4. Set<ObjectDrawableAssist> assists = const <ObjectDrawableAssist>{},
  5. Map<ObjectDrawableAssist, Paint> assistPaints = const <ObjectDrawableAssist, Paint>{},
  6. bool locked = false,
  7. bool hidden = 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);