SideTitleFitInsideData class
Force child widget to be positioned inside its corresponding axis bounding box
To makes things simpler, it's recommended to use SideTitleFitInsideData.fromTitleMeta and pass the TitleMeta provided from SideTitles.getTitlesWidget
Constructors
- SideTitleFitInsideData({required bool enabled, required double axisPosition, required double parentAxisSize, required double distanceFromEdge})
-
Force child widget to be positioned inside its
corresponding axis bounding box
const
- SideTitleFitInsideData.disable()
-
Create a disabled SideTitleFitInsideData.
If used, the child widget wouldn't be fitted
inside its corresponding axis bounding box
factory
- SideTitleFitInsideData.fromTitleMeta(TitleMeta meta, {bool enabled = true, double distanceFromEdge = 6})
-
Help to Create SideTitleFitInsideData from TitleMeta.
TitleMeta is provided by SideTitles.getTitlesWidget function.
factory
Properties
- axisPosition → double
-
The position (in pixel) that applied to
the child widget along its corresponding axis.
final
- distanceFromEdge → double
-
Distance between child widget and its closest corresponding axis edge
final
- enabled → bool
-
Whether to enable fit inside to SideTitleWidget
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- parentAxisSize → double
-
Parent axis max width/height
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
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.
inherited