firstPaint method

Paint? firstPaint(
  1. QRCodeElement element, {
  2. FinderPatternPosition? position,
})

Retrieve the first Paint object from the paint cache for the provided element and position.

Implementation

Paint? firstPaint(QRCodeElement element, {FinderPatternPosition? position}) {
  return element == QRCodeElement.codePixel
      ? _pixelPaints.first
      : _keyedPaints[_cacheKey(element, position: position)];
}