getAttributeInt method
Implementation
int? getAttributeInt(String attribute) {
final parts = attribute.split('=');
assert(parts.length == 2, 'expected key value paire');
var pts = parts[1];
pts = pts.replaceAll('pt', '');
pts = pts.replaceAll('px', '');
pts = pts.replaceAll('"', '');
return int.tryParse(pts);
}