firstPaint method
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)];
}