GridPaintRetain class

Owns the retained grid frame so partial dirty paints can composite over the previous paint without blanking clean rows. Held by TerminalViewState because CustomPainter has no dispose hook.

Full paints and line-scroll blits store a ui.Picture (no toImageSync). Sparse typing partials may nest drawPicture; after maxNestDepth the painter re-roots with a full paint instead of flattening to an ui.Image (Image present looked dimmer than Picture and caused click/type flashes).

Constructors

GridPaintRetain()

Properties

hasContent bool
no setter
hashCode int
The hash code for this object.
no setterinherited
image Image?
no setter
needsFlatten bool
no setter
nestDepth int
no setter
picture Picture?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size?
no setter

Methods

blitScrolled(Canvas canvas, int deltaLines, double cellHeight, Size size) → void
Blit retained content shifted by deltaLines cells (positive = down).
blitTo(Canvas canvas) → void
Blit the retained frame at integer pixel origin (1:1, no rescale).
canPartial({required Size size, required double scrollFraction, required int atlasGeneration, required int styleKey}) bool
Whether a partial dirty paint can reuse the retained frame.
dispose() → void
invalidate() → void
Drops retained content so the next paint must go full (e.g. after a mid-cell scroll where shift is baked into pixels).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replaceImage(Image image, {required Size size, required double scrollFraction, required int atlasGeneration, required int styleKey}) → void
replacePicture(Picture picture, {required Size size, required double scrollFraction, required int atlasGeneration, required int styleKey, required int nestDepth}) → void
toString() String
A string representation of this object.
inherited

Operators

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

Constants

maxNestDepth → const int
Flatten nested pictures after this many partial composites.