commit method
Commit all drawing commands to the page content stream.
Equivalent to PyMuPDF's shape.commit().
Returns the generated content stream string.
Implementation
String commit({bool overlay = true}) {
final result = _content.toString();
_content.clear();
totalContents = 0;
return result;
}