RulerStyle class
RulerStyle allows to customize the style of LinearGauge Rulers.
Constructors
- RulerStyle({Color? primaryRulerColor = Colors.black54, double? primaryRulersWidth = 1.0, double? primaryRulersHeight = 10.0, double? secondaryRulersHeight = 5.0, double? secondaryRulersWidth = 1.0, Color? secondaryRulerColor = Colors.grey, double? secondaryRulerPerInterval = 1.0, bool showSecondaryRulers = true, bool showPrimaryRulers = true, TextStyle? textStyle = const TextStyle(fontSize: 12.0, color: Color.fromARGB(255, 86, 86, 86), fontStyle: FontStyle.normal, fontWeight: FontWeight.normal), bool? showLabel = true, required RulerPosition? rulerPosition, double? labelOffset = 0, double? rulersOffset = 0, bool? inverseRulers = false})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- inverseRulers → bool?
-
inversedRulers
allows for the inversion of the gauge's rulers, reversing the direction of the scale and indicators.finalinherited - labelOffset → double?
-
labelOffset
Sets the gap of the label from the primary rulerfinalinherited - primaryRulerColor → Color?
-
primaryRulerColor
sets the color of the ruler which is attached to labelsfinalinherited - primaryRulersHeight → double?
-
primaryRulersHeight
set the Height of the Rulers which are attached to the labelsfinalinherited - primaryRulersWidth → double?
-
primaryRulersWidth
set the width of the Rulers which are attached to the labelsfinalinherited - rulerPosition → RulerPosition?
-
rulerPosition
Sets the position of the rulers (top,center,bottom)final - rulersOffset → double?
-
rulersOffset
Sets the gap between the rulers and the LinearGaugefinalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryRulerColor → Color?
-
secondaryRulerColor
sets the color of the ruler which are in the between of ruler attached to labelsfinalinherited - secondaryRulerPerInterval → double?
-
secondaryRulerPerInterval
draw the ruler between primary rulers as per interval providedfinalinherited - secondaryRulersHeight → double?
-
secondaryRulersHeight
set the Height of the Rulers which are in the between of label Rulersfinalinherited - secondaryRulersWidth → double?
-
secondaryRulersWidth
set the width of the Rulers which are in the between of label Rulersfinalinherited - showLabel → bool?
-
Sets the visibility of the label
default is to true
finalinherited
- showPrimaryRulers → bool
-
showSecondaryRules
sets the visibility of the primary rulers.finalinherited - showSecondaryRulers → bool
-
showSecondaryRules
sets the visibility of the secondary rulers.finalinherited - textStyle → TextStyle?
-
textStyle
sets the ruler text style of LinearGaugefinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited