parseFill function
Parses fill information to a DrawablePaint.
Implementation
DrawablePaint? parseFill(List<XmlAttribute> el, Rect bounds) {
final String? rawFill =
getAttribute(el, 'fillColor', def: null, namespace: androidNS);
if (rawFill == null) {
return null;
}
return DrawablePaint(
PaintingStyle.fill,
color: parseColor(rawFill)!
.withOpacity(parseDouble(getAttribute(el, 'fillAlpha', def: '1'))!),
);
}