ChartTitle class

It has the properties of the chart title.

ChartTitle can define and customize the Chart title using title property of SfCartesianChart. The text property of ChartTitle is used to set the text for the title.

It provides an option of text, text style, alignment border color and width to customize the appearance.

Constructors

ChartTitle({String text = '', TextStyle? textStyle, ChartAlignment alignment = ChartAlignment.center, Color borderColor = Colors.transparent, double borderWidth = 0, Color? backgroundColor})
Creating an argument constructor of ChartTitle class.

Properties

alignment ChartAlignment
Aligns the chart title.
final
backgroundColor Color?
Background color of the chart title.
final
borderColor Color
Border color of the chart title.
final
borderWidth double
Border width of the chart title.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Text to be displayed as chart title. Any desired text can be set as chart title. If the width of the chart title exceeds the width of the chart, then the title will be wrapped to multiple rows.
final
textStyle TextStyle
Customizes the appearance of the chart title text.
final

Methods

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.
override