ImageDrawable constructor

ImageDrawable({
  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,
  8. required Image image,
  9. bool flipped = false,
})

Creates an ImageDrawable with the given image.

Implementation

ImageDrawable({
  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,
  required this.image,
  this.flipped = false,
}) : super(
          position: position,
          rotationAngle: rotationAngle,
          scale: scale,
          assists: assists,
          assistPaints: assistPaints,
          hidden: hidden,
          locked: locked);