transitionSourceFor method

GallerySource? transitionSourceFor(
  1. Object assetId
)

Central transition-source lookup. Compose's hero-flight calls this at dismiss time to find the cell to land on — the picker picks the right view based on its own current state, so the animation always targets what the user can see. Mirrors telegram-iOS's MediaPickerScreen.transitionView(for:). Reads the mounted thumbnail registry; returns null when the matching cell is off-screen, picker-unmounted, or not in the active album.

Implementation

GallerySource? transitionSourceFor(Object assetId) =>
    _sourceRegistry.sourceFor(assetId, _activeViewKind);