forTopic static method

List<ConfidenceEvent> forTopic(
  1. List<ConfidenceEvent> events,
  2. String topicId
)

Filter events for a specific topic.

Implementation

static List<ConfidenceEvent> forTopic(
  List<ConfidenceEvent> events,
  String topicId,
) {
  return events.where((e) => e.topicId == topicId).toList();
}