cache method
Save a Paint for the provided element and position into the cache.
Implementation
void cache(
Paint paint,
QrCodeElement element, {
FinderPatternPosition? position,
}) {
if (element == QrCodeElement.codePixel) {
_pixelPaints.add(paint);
} else {
_keyedPaints[_cacheKey(element, position: position)] = paint;
}
}