addAnnotation method

Annotation addAnnotation({
  1. required int value,
  2. required String label,
})

Implementation

Annotation addAnnotation({required int value, required String label}) {
  final annotation = Annotation()
    ..value = value
    ..annotation = label;
  annotations.add(annotation);
  return annotation;
}