GraphLine class

Represents a line that can be drawn on a canvas.

Inheritance

Constructors

GraphLine({required Color color, required Offset startOffset, required Offset endOffset, required double lineWidth})
Creates a GraphLine with the specified color, startOffset, endOffset, and lineWidth.

Properties

color Color
final
endOffset Offset
final
hashCode int
The hash code for this object.
no setterinherited
lineWidth double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startOffset Offset
final

Methods

draw(Canvas canvas, Size size) → void
Draws the line on the given canvas with the provided size.
override
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