cachedCursorContainerId property

String? get cachedCursorContainerId

O(1) when pre-computed, falls back to O(n) otherwise (e.g. drag selection).

Implementation

String? get cachedCursorContainerId {
  return _cachedCursorContainerId ??
      (cursor.focusId.isNotEmpty ? findLogicalContainerId(cursor.focusId) : null);
}