GraphFunction constructor

GraphFunction({
  1. required dynamic function(
    1. double enter
    ),
  2. required Color color,
})

Creates a GraphFunction with the specified mathematical function and color.

Implementation

GraphFunction({
  required this.function,
  required Color color,
}) {
  paint.color = color;
}