getAllForType method

List<TextExtmark> getAllForType(
  1. String type
)

Implementation

List<TextExtmark> getAllForType(String type) {
  final ids = _extmarksByType[type];
  if (ids == null || ids.isEmpty) {
    return const <TextExtmark>[];
  }
  return _sorted(ids.map((id) => _extmarks[id]).whereType<TextExtmark>());
}