GraphText class

Represents a text element that can be drawn on a canvas.

Inheritance

Constructors

GraphText({required String text, TextStyle textStyle = const TextStyle(color: Colors.white), required Offset offset})
Creates a GraphText with the specified text, textStyle, and offset.

Properties

hashCode int
The hash code for this object.
no setterinherited
offset Offset
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
final
textStyle TextStyle
final

Methods

draw(Canvas canvas, Size size) → void
Draws the text 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