GraphFunction class

Represents a mathematical function that can be drawn on a graph.

Constructors

GraphFunction({required dynamic function(double enter), required Color color})
Creates a GraphFunction with the specified mathematical function and color.

Properties

function ↔ dynamic Function(double enter)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
paint Paint
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

draw(Canvas canvas, Size size, Graph graph) → void
Draws the graph of the function on the given canvas with the provided size and graph settings.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited