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

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 to null.
clearTickColor() GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Clears GaugeScaleStyle.tickColor to null.
clearTickLength() GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Clears GaugeScaleStyle.tickLength to null.
clearTickWidth() GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Clears GaugeScaleStyle.tickWidth to null.
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 with value.
withLabelOffset(double value) GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Replaces GaugeScaleStyle.labelOffset with value.
withLabelPosition(GaugeScaleLabelPosition value) GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Replaces GaugeScaleStyle.labelPosition with value.
withLabelStyle(PolarLabelStyle value) GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Replaces GaugeScaleStyle.labelStyle with value.
withMinorTickColor(Color value) GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Replaces GaugeScaleStyle.minorTickColor with value.
withMinorTickLength(double value) GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Replaces GaugeScaleStyle.minorTickLength with value.
withMinorTickWidth(double value) GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Replaces GaugeScaleStyle.minorTickWidth with value.
withTickColor(Color value) GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Replaces GaugeScaleStyle.tickColor with value.
withTickGap(double value) GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Replaces GaugeScaleStyle.tickGap with value.
withTickLength(double value) GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Replaces GaugeScaleStyle.tickLength with value.
withTickPosition(GaugeTickPosition value) GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Replaces GaugeScaleStyle.tickPosition with value.
withTickWidth(double value) GaugeScaleStyle

Available on GaugeScaleStyle, provided by the GaugeScaleStyleFluent extension

Replaces GaugeScaleStyle.tickWidth with value.

Operators

operator ==(Object other) bool
The equality operator.
override