commit method
Implementation
void commit([List<ParagraphElement>? elements, ParagraphFormat? format]) {
assert(
(elements != null && format != null) ||
(elements == null && format == null),
);
_isAppending = false;
if (elements != null && format != null) {
append(elements, format);
}
}