activeRunOf method

JsonMap? activeRunOf(
  1. String threadId
)

The active run of threadId, or null.

Implementation

JsonMap? activeRunOf(String threadId) {
  for (final r in runs.values) {
    if (r['thread_id'] == threadId && _active(r)) return r;
  }
  return null;
}