markers property
List<UVideoMarker>
get
markers
Seek-bar markers for every note and drawing.
Implementation
List<UVideoMarker> get markers => <UVideoMarker>[
..._notes.map((UMediaNote note) => UVideoMarker(start: note.position, end: note.end, label: note.text, color: note.color)),
..._shapes
.where((UDocShape shape) => shape.startMs != null)
.map(
(UDocShape shape) => UVideoMarker(
start: Duration(milliseconds: shape.startMs!),
end: shape.endMs == null ? null : Duration(milliseconds: shape.endMs!),
label: shape.hasText ? shape.text : U.s.drawings,
color: shape.strokeColor,
),
),
];