shared/widgets/layer/widgets/layer_repaint_boundary
library
Typedefs
-
LayerContentRenderer
= Future<Image> Function(double pixelRatio)
-
Renders a layer's untransformed content at
pixelRatio.
-
LayerHighlightRenderer
= Future<Image> Function(double pixelRatio, int highlightIndex)
-
Renders a text layer's untransformed content at
pixelRatio with the
entry of TextLayer.highlights at highlightIndex active.
-
LayerTextStateRenderer
= Future<Image> Function(double pixelRatio, {int? highlightIndex, int? revealedLength})
-
Renders a text layer's untransformed content at
pixelRatio with the
entry of TextLayer.highlights at highlightIndex active (none when it is
null) and only the first revealedLength UTF-16 code units of its text
drawn (all of it when it is null).