getNumeric static method
Implementation
static SvgNumeric? getNumeric(XmlElement xml, String name, SvgBrush? brush,
{String? namespace, double? defaultValue}) {
final attr = xml.getAttribute(name, namespace: namespace);
if (attr == null) {
return defaultValue == null ? null : SvgNumeric.value(defaultValue, null);
}
return SvgNumeric(attr, brush);
}