AxisTitles class
Holds data for showing each side titles (left, top, right, bottom)
Constructors
- AxisTitles({Widget? axisNameWidget, double axisNameSize = 16, SideTitles sideTitles = const SideTitles(), bool drawBelowEverything = true})
-
you can provide
axisName
if you want to show a general label on this axis,const
Properties
- axisNameSize → double
-
Determines the size of
axisName
final - axisNameWidget → Widget?
-
It shows the name of axis, for example your x-axis shows year,
then you might want to show it using axisNameWidget property as a widget
final
- drawBelowEverything → bool
-
If titles are showing on top of your tooltip, you can draw them below everything.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
Used for equality check, see
EquatableMixin
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showAxisTitles → bool
-
If there is something to show as axisTitles, it returns true
no setter
- showSideTitles → bool
-
If there is something to show as sideTitles, it returns true
no setter
- sideTitles → SideTitles
-
It is responsible to show your axis side labels.
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
copyWith(
{Widget? axisNameWidget, double? axisNameSize, SideTitles? sideTitles, bool? drawBelowEverything}) → AxisTitles - 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(
AxisTitles a, AxisTitles b, double t) → AxisTitles -
Lerps a AxisTitles based on
t
value, check Tween.lerp.