isAdaptiveIconConfigPngFile function
Returns true if the adaptive icon background should be treated as an
image file (vs a hex color literal). Anything that isn't a hex color
literal is treated as a file path, supporting .png, .jpg, .jpeg,
.webp, and any other extension the decoder accepts. The old
endsWith('.png') check mis-routed non-PNG paths into colors.xml,
breaking mergeDebugResources (upstream #616/#617/#665).
Implementation
bool isAdaptiveIconConfigPngFile(String backgroundFile) {
return !isHexColorLiteral(backgroundFile);
}