Graph constructor

Graph({
  1. double gridStep = 100,
  2. double sensibility = 0.6,
  3. TextStyle numbersStyle = const TextStyle(color: Colors.white, backgroundColor: Colors.black),
  4. Color backgroundColor = Colors.black,
  5. Color axesColor = Colors.white,
  6. Color gridColor = Colors.grey,
  7. double gridWidth = 1.0,
  8. double axesWidth = 2.0,
  9. bool drawAxes = true,
  10. bool drawNumbers = true,
})

Creates a Graph instance with the specified configuration and settings.

Implementation

Graph({
  this.gridStep = 100,
  this.sensibility = 0.6,
  this.numbersStyle =
      const TextStyle(color: Colors.white, backgroundColor: Colors.black),
  this.backgroundColor = Colors.black,
  this.axesColor = Colors.white,
  this.gridColor = Colors.grey,
  this.gridWidth = 1.0,
  this.axesWidth = 2.0,
  this.drawAxes = true,
  this.drawNumbers = true,
});