ImageAnnotation constructor

ImageAnnotation({
  1. dynamic userInfo,
  2. ValueChanged<Annotation>? onTap,
  3. bool fixed = false,
  4. int yAxisPosition = 0,
  5. double? minZoomVisible,
  6. double? maxZoomVisible,
  7. Offset anchor(
    1. Size
    )?,
  8. required Image image,
  9. List<num>? positions,
  10. Offset offset = Offset.zero,
})

Implementation

ImageAnnotation({
  super.userInfo,
  super.onTap,
  super.fixed = false,
  super.yAxisPosition = 0,
  super.minZoomVisible,
  super.maxZoomVisible,
  this.anchor,
  required this.image,
  this.positions,
  this.offset = Offset.zero,
}) : assert(positions != null || anchor != null, 'positions or anchor must be not null');