GallerySource class abstract

A registration that lets the gallery query a chat-side widget for its current on-screen rect and a fresh snapshot. Re-queried at open AND close time so chat scrolling between events is handled correctly.

Mirrors iOS's transitionNode closure (ChatController.swift:1424-1435), which returns (ASDisplayNode, CGRect, () -> (UIView?, UIView?)) — a triple of the source node, its rect, and a snapshot factory.

Implementers

Constructors

GallerySource()

Properties

borderRadius → BorderRadius
Corner shape applied outside the captured image.
no setter
currentRect → Rect?
Bubble rect in screen (logical) coordinates. Null if scrolled off-screen.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
snapshot() → Future<Image?>
Current image pixels, cover-fitted to currentRect by the flight. The caller owns the image; null means no pixels are available.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited