drawObjects method
Draws all the drawable objects on the graph canvas with the given size
.
Implementation
void drawObjects(Canvas canvas, Size size) {
for (var constObject in graph.constObjects) {
addObject(constObject);
}
for (var object in graph.drawableObjects) {
object.draw(canvas, size);
}
graph.drawableObjects = [];
}