NiceImageAnnotator constructor

const NiceImageAnnotator({
  1. Key? key,
  2. required String imageUrl,
  3. List<NiceAnnotation> initialAnnotations = const [],
  4. ValueChanged<List<NiceAnnotation>>? onAnnotationsChanged,
  5. Future<void> onSave(
    1. List<NiceAnnotation>
    )?,
  6. bool readOnly = false,
  7. NiceAnnotationTool initialTool = NiceAnnotationTool.pen,
})

Implementation

const NiceImageAnnotator({
  super.key,
  required this.imageUrl,
  this.initialAnnotations = const [],
  this.onAnnotationsChanged,
  this.onSave,
  this.readOnly = false,
  this.initialTool = NiceAnnotationTool.pen,
});