dispose method
void
dispose()
Releases the decoded atlas images and vertex buffers. Call after the recording that finish painted into has ended (the picture keeps its own references).
Implementation
void dispose() {
for (final b in _batches) {
b.dispose();
}
for (final b in _slugBatches) {
b.dispose();
}
}