ThreadDataResult constructor Null safety

ThreadDataResult(
  1. SequenceNode data,
  2. DateTime since
)

Creates a new result with the given data and since.

Implementation

ThreadDataResult(this.data, this.since) {
  for (final node in data.children) {
    if (node.isNotEmpty) {
      final sequence = node.toMessageSequence();
      final ids = sequence.toList();
      if (ids.length > 1) {
        for (final id in ids) {
          _sequencesById[id] = sequence;
        }
      }
    }
  }
}