Annotations constructor

Annotations(
  1. ChantContext ctxt,
  2. List<String> texts
)

Implementation

Annotations(ChantContext ctxt, List<String> texts)
  : annotations = texts.map((text) => Annotation(ctxt, text, 0)).toList() {
  padding = annotations.map((a) => a.padding).fold(0, math.max);
}