SideTitles class

Holds data for showing label values on axis numbers

Constructors

SideTitles({bool showTitles = false, GetTitleWidgetFunction getTitlesWidget = defaultGetTitle, double reservedSize = 22, double? interval})
It draws some title on an axis, per axis values, showTitles determines showing or hiding this side,
const

Properties

getTitlesWidget GetTitleWidgetFunction
You can override it to pass your custom widget to show in each axis value We recommend you to use SideTitleWidget.
final
hashCode int
The hash code for this object.
no setterinherited
interval double?
Texts are showing with provided interval. If you don't provide anything, we try to find a suitable value to set as interval under the hood.
final
props List<Object?>
Used for equality check, see EquatableMixin.
no setter
reservedSize double
It determines the maximum space that your titles need, (All titles will stretch using this value)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTitles bool
Determines showing or hiding this side titles
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({bool? showTitles, GetTitleWidgetFunction? getTitlesWidget, double? reservedSize, double? interval}) SideTitles
Copies current SideTitles to a new SideTitles, and replaces provided values.
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

Static Methods

lerp(SideTitles a, SideTitles b, double t) SideTitles
Lerps a SideTitles based on t value, check Tween.lerp.