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
-
- @immutable
- @chartSurface
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 tonull. -
clearPanelColor(
) → GaugeReferenceStyle -
Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension
Clears GaugeReferenceStyle.panelColor tonull. -
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 withvalue. -
withLabelMaxWidth(
double value) → GaugeReferenceStyle -
Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension
Replaces GaugeReferenceStyle.labelMaxWidth withvalue. -
withLabelOffset(
double value) → GaugeReferenceStyle -
Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension
Replaces GaugeReferenceStyle.labelOffset withvalue. -
withLabelStyle(
PolarLabelStyle value) → GaugeReferenceStyle -
Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension
Replaces GaugeReferenceStyle.labelStyle withvalue. -
withOuterLineOffset(
double value) → GaugeReferenceStyle -
Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension
Replaces GaugeReferenceStyle.outerLineOffset withvalue. -
withPanelBorderColor(
Color value) → GaugeReferenceStyle -
Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension
Replaces GaugeReferenceStyle.panelBorderColor withvalue. -
withPanelBorderRadius(
double value) → GaugeReferenceStyle -
Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension
Replaces GaugeReferenceStyle.panelBorderRadius withvalue. -
withPanelBorderWidth(
double value) → GaugeReferenceStyle -
Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension
Replaces GaugeReferenceStyle.panelBorderWidth withvalue. -
withPanelColor(
Color value) → GaugeReferenceStyle -
Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension
Replaces GaugeReferenceStyle.panelColor withvalue. -
withPanelPadding(
double value) → GaugeReferenceStyle -
Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension
Replaces GaugeReferenceStyle.panelPadding withvalue. -
withShowLabelPanel(
bool value) → GaugeReferenceStyle -
Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension
Replaces GaugeReferenceStyle.showLabelPanel withvalue. -
withShowLabels(
bool value) → GaugeReferenceStyle -
Available on GaugeReferenceStyle, provided by the GaugeReferenceStyleFluent extension
Replaces GaugeReferenceStyle.showLabels withvalue.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override