GaugeScaleStyle class
Tick and numeric scale-label presentation for one Gauge pane.
Null colors inherit the active chart theme. The geometry values are logical pixels and therefore remain stable across artifact hydration and generated Dart source.
- Available extensions
- Annotations
-
- @immutable
- @chartSurface
Constructors
- GaugeScaleStyle({Color? tickColor, double? tickWidth, double? tickLength, GaugeTickPosition tickPosition = GaugeTickPosition.centered, double tickGap = 0, Color? minorTickColor, double minorTickWidth = 1, double minorTickLength = 5, PolarLabelStyle labelStyle = const PolarLabelStyle(fontSize: 9), GaugeScaleLabelPosition labelPosition = GaugeScaleLabelPosition.outside, double labelOffset = 10, double labelMaxWidth = 72})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- labelMaxWidth → double
-
final
- labelOffset → double
-
Edge-to-edge radial gap from the outer tick endpoint to the nearest
scale-label edge.
final
- labelPosition → GaugeScaleLabelPosition
-
final
- labelStyle → PolarLabelStyle
-
final
- minorTickColor → Color?
-
Null derives a quieter color from tickColor or the active chart theme.
final
- minorTickLength → double
-
final
- minorTickWidth → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tickColor → Color?
-
final
- tickGap → double
-
Edge-to-edge gap between the axis band and ticks placed fully inside or
outside it.
final
- tickLength → double?
-
Null inherits AxisStyle.tickLength from the active chart theme.
final
- tickPosition → GaugeTickPosition
-
final
- tickWidth → double?
-
Null inherits AxisStyle.tickWidth from the active chart theme.
final
Methods
-
clearMinorTickColor(
) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Clears GaugeScaleStyle.minorTickColor tonull. -
clearTickColor(
) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Clears GaugeScaleStyle.tickColor tonull. -
clearTickLength(
) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Clears GaugeScaleStyle.tickLength tonull. -
clearTickWidth(
) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Clears GaugeScaleStyle.tickWidth tonull. -
copyWith(
{Color? tickColor, bool clearTickColor = false, double? tickWidth, bool clearTickWidth = false, double? tickLength, bool clearTickLength = false, GaugeTickPosition? tickPosition, double? tickGap, Color? minorTickColor, bool clearMinorTickColor = false, double? minorTickWidth, double? minorTickLength, PolarLabelStyle? labelStyle, GaugeScaleLabelPosition? labelPosition, double? labelOffset, double? labelMaxWidth}) → GaugeScaleStyle -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateLabelStyle(
PolarLabelStyle update(PolarLabelStyle current)) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Rebuilds GaugeScaleStyle.labelStyle from its current value. -
validate(
) → void -
withLabelMaxWidth(
double value) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Replaces GaugeScaleStyle.labelMaxWidth withvalue. -
withLabelOffset(
double value) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Replaces GaugeScaleStyle.labelOffset withvalue. -
withLabelPosition(
GaugeScaleLabelPosition value) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Replaces GaugeScaleStyle.labelPosition withvalue. -
withLabelStyle(
PolarLabelStyle value) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Replaces GaugeScaleStyle.labelStyle withvalue. -
withMinorTickColor(
Color value) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Replaces GaugeScaleStyle.minorTickColor withvalue. -
withMinorTickLength(
double value) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Replaces GaugeScaleStyle.minorTickLength withvalue. -
withMinorTickWidth(
double value) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Replaces GaugeScaleStyle.minorTickWidth withvalue. -
withTickColor(
Color value) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Replaces GaugeScaleStyle.tickColor withvalue. -
withTickGap(
double value) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Replaces GaugeScaleStyle.tickGap withvalue. -
withTickLength(
double value) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Replaces GaugeScaleStyle.tickLength withvalue. -
withTickPosition(
GaugeTickPosition value) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Replaces GaugeScaleStyle.tickPosition withvalue. -
withTickWidth(
double value) → GaugeScaleStyle -
Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension
Replaces GaugeScaleStyle.tickWidth withvalue.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override