GaugeReferenceStyle class

Shared outside-label and radial-callout presentation for Gauge references.

Target and threshold stroke colors and widths remain owned by GaugeTarget and GaugeThreshold. This config controls where those reference lines begin/end and how their optional labels are presented.

Available extensions
Annotations

Constructors

GaugeReferenceStyle({bool showLabels = true, double innerLineOffset = 4, double outerLineOffset = 6, PolarLabelStyle labelStyle = const PolarLabelStyle(fontSize: 10, fontWeight: FontWeight.w700), double labelOffset = 8, double labelMaxWidth = 100, bool showLabelPanel = false, Color? panelColor, Color? panelBorderColor, double panelBorderWidth = 1, double panelBorderRadius = 4, double panelPadding = 4})
const

Properties

hashCode int
The hash code for this object.
no setteroverride
innerLineOffset double
final
labelMaxWidth double
final
labelOffset double
Edge-to-edge radial gap from the reference-line endpoint to the nearest label or label-panel edge.
final
labelStyle PolarLabelStyle
final
outerLineOffset double
final
panelBorderColor Color?
final
panelBorderRadius double
final
panelBorderWidth double
final
panelColor Color?
final
panelPadding double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLabelPanel bool
final
showLabels bool
final

Methods

clearPanelBorderColor() GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Clears GaugeReferenceStyle.panelBorderColor to null.
clearPanelColor() GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Clears GaugeReferenceStyle.panelColor to null.
copyWith({bool? showLabels, double? innerLineOffset, double? outerLineOffset, PolarLabelStyle? labelStyle, double? labelOffset, double? labelMaxWidth, bool? showLabelPanel, Color? panelColor, bool clearPanelColor = false, Color? panelBorderColor, bool clearPanelBorderColor = false, double? panelBorderWidth, double? panelBorderRadius, double? panelPadding}) GaugeReferenceStyle
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)) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Rebuilds GaugeReferenceStyle.labelStyle from its current value.
validate() → void
withInnerLineOffset(double value) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Replaces GaugeReferenceStyle.innerLineOffset with value.
withLabelMaxWidth(double value) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Replaces GaugeReferenceStyle.labelMaxWidth with value.
withLabelOffset(double value) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Replaces GaugeReferenceStyle.labelOffset with value.
withLabelStyle(PolarLabelStyle value) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Replaces GaugeReferenceStyle.labelStyle with value.
withOuterLineOffset(double value) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Replaces GaugeReferenceStyle.outerLineOffset with value.
withPanelBorderColor(Color value) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Replaces GaugeReferenceStyle.panelBorderColor with value.
withPanelBorderRadius(double value) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Replaces GaugeReferenceStyle.panelBorderRadius with value.
withPanelBorderWidth(double value) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Replaces GaugeReferenceStyle.panelBorderWidth with value.
withPanelColor(Color value) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Replaces GaugeReferenceStyle.panelColor with value.
withPanelPadding(double value) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Replaces GaugeReferenceStyle.panelPadding with value.
withShowLabelPanel(bool value) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Replaces GaugeReferenceStyle.showLabelPanel with value.
withShowLabels(bool value) GaugeReferenceStyle

Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension

Replaces GaugeReferenceStyle.showLabels with value.

Operators

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