timeMarkersFor method

List<Map<String, Object?>> timeMarkersFor({
  1. String? source,
  2. String? label,
})

Implementation

List<Map<String, Object?>> timeMarkersFor({String? source, String? label}) {
  return [
    for (final marker in timeMarkers)
      if ((source == null || marker['source'] == source) &&
          (label == null || marker['label'] == label))
        marker,
  ];
}