drawFunctions method

void drawFunctions(
  1. Canvas canvas,
  2. Size size
)

Draws all the mathematical functions on the graph canvas with the given size.

Implementation

void drawFunctions(Canvas canvas, Size size) {
  for (var function in graph.functions) {
    function.draw(canvas, size, graph);
  }
}