LayerHighlightRenderer typedef

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.

Implementation

typedef LayerHighlightRenderer =
    Future<ui.Image> Function(double pixelRatio, int highlightIndex);