byIndex static method
The path with the given index, fitted into size while keeping its
aspect ratio and centered on the origin.
Implementation
static Path byIndex(int index, Size size) {
final (_, build) = _paths[index];
return build(size).centered.resizeTo(size, keepRatio: true);
}