byName static method
The path with the given name, fitted into size while keeping its
aspect ratio and centered on the origin.
Implementation
static Path byName(String name, Size size) {
final index = names.indexOf(name);
if (index < 0) {
throw ArgumentError.value(name, 'name', 'Not one of $names');
}
return byIndex(index, size);
}