AnnotationOverlay constructor

const AnnotationOverlay({
  1. Key? key,
  2. required int pageNumber,
  3. required List<Annotation> annotations,
  4. required AnnotationMode currentMode,
  5. required Color currentColor,
  6. required double currentStrokeWidth,
  7. required ShapeType currentShapeType,
  8. required void onAnnotationAdded(
    1. Annotation
    ),
  9. required void onAnnotationUpdated(
    1. Annotation
    ),
  10. required void onAnnotationRemoved(
    1. String,
    2. int
    ),
  11. required Size pageSize,
  12. double scaleX = 1.0,
  13. double scaleY = 1.0,
})

Implementation

const AnnotationOverlay({
  super.key,
  required this.pageNumber,
  required this.annotations,
  required this.currentMode,
  required this.currentColor,
  required this.currentStrokeWidth,
  required this.currentShapeType,
  required this.onAnnotationAdded,
  required this.onAnnotationUpdated,
  required this.onAnnotationRemoved,
  required this.pageSize,
  this.scaleX = 1.0,
  this.scaleY = 1.0,
});