addSnapshot method
Pushes a new snapshot into the controller.
Called internally by the overlay widget — you normally don't need this.
Implementation
void addSnapshot(AppResourceSnapshot snapshot, {required int maxPoints}) {
_latestSnapshot = snapshot;
_history.add(snapshot);
while (_history.length > maxPoints) {
_history.removeAt(0);
}
if (!_snapshotController.isClosed) {
_snapshotController.add(snapshot);
}
}