toFlutterString method
Returns a string that prints the dart:ui code to create this path.
Implementation
String toFlutterString() {
final StringBuffer buffer = StringBuffer('Path()');
if (fillType != PathFillType.nonZero) {
buffer.write('\n ..fillType = $fillType');
}
for (final PathCommand command in commands) {
buffer.write('\n ${command.toFlutterString()}');
}
buffer.write(';');
return buffer.toString();
}