LayerTextStateRenderer typedef
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).
Implementation
typedef LayerTextStateRenderer =
Future<ui.Image> Function(
double pixelRatio, {
int? highlightIndex,
int? revealedLength,
});