ThresholdAnnotationDefaults class

Default styling for threshold annotations (horizontal/vertical lines).

Available extensions
Annotations
  • @chartSurface

Constructors

ThresholdAnnotationDefaults({required Color lineColor, required double lineWidth, required List<double> dashPattern, required LabelStyle labelStyle})
const

Properties

dashPattern → List<double>
final
hashCode → int
The hash code for this object.
no setteroverride
labelStyle → LabelStyle
final
lineColor → Color
final
lineWidth → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Color? lineColor, double? lineWidth, List<double>? dashPattern, LabelStyle? labelStyle}) → ThresholdAnnotationDefaults
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAnnotationStyle() → AnnotationStyle
Convert theme defaults to AnnotationStyle for label styling
toString() → String
A string representation of this object.
inherited
updateLabelStyle(LabelStyle update(LabelStyle current)) → ThresholdAnnotationDefaults

Available on ThresholdAnnotationDefaults, provided by the ThresholdAnnotationDefaultsFluent extension

Rebuilds ThresholdAnnotationDefaults.labelStyle from its current value.
withDashPattern(List<double> value) → ThresholdAnnotationDefaults

Available on ThresholdAnnotationDefaults, provided by the ThresholdAnnotationDefaultsFluent extension

Replaces ThresholdAnnotationDefaults.dashPattern with value.
withLabelStyle(LabelStyle value) → ThresholdAnnotationDefaults

Available on ThresholdAnnotationDefaults, provided by the ThresholdAnnotationDefaultsFluent extension

Replaces ThresholdAnnotationDefaults.labelStyle with value.
withLineColor(Color value) → ThresholdAnnotationDefaults

Available on ThresholdAnnotationDefaults, provided by the ThresholdAnnotationDefaultsFluent extension

Replaces ThresholdAnnotationDefaults.lineColor with value.
withLineWidth(double value) → ThresholdAnnotationDefaults

Available on ThresholdAnnotationDefaults, provided by the ThresholdAnnotationDefaultsFluent extension

Replaces ThresholdAnnotationDefaults.lineWidth with value.

Operators

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

Constants

colorblindFriendly → const ThresholdAnnotationDefaults
corporateBlue → const ThresholdAnnotationDefaults
defaultDark → const ThresholdAnnotationDefaults
defaultLight → const ThresholdAnnotationDefaults
highContrast → const ThresholdAnnotationDefaults
minimal → const ThresholdAnnotationDefaults
vibrant → const ThresholdAnnotationDefaults