afterChildrenRendered method
Flushes any pending batches after all children are rendered, so they render after all non-eligible children (same priority group) as well.
This is necessary to ensure that batches render in the correct order relative to non-eligible children, but can be overridden if the flush needs to happen at a different time (e.g. before rendering a specific child) without breaking batching for the rest of the group.
Implementation
@override
@protected
void afterChildrenRendered(Canvas canvas) {
_flushAll(canvas);
_currentPriority = null;
super.afterChildrenRendered(canvas);
}