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?
-
inversedRulersallows for the inversion of the gauge's rulers, reversing the direction of the scale and indicators.finalinherited - labelOffset → double?
-
labelOffsetSets the gap of the label from the primary rulerfinalinherited - primaryRulerColor → Color?
-
primaryRulerColorsets the color of the ruler which is attached to labelsfinalinherited - primaryRulersHeight → double?
-
primaryRulersHeightset the Height of the Rulers which are attached to the labelsfinalinherited - primaryRulersWidth → double?
-
primaryRulersWidthset the width of the Rulers which are attached to the labelsfinalinherited - rulerPosition → RulerPosition?
-
rulerPositionSets the position of the rulers (top,center,bottom)final - rulersOffset → double?
-
rulersOffsetSets the gap between the rulers and the LinearGaugefinalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondaryRulerColor → Color?
-
secondaryRulerColorsets the color of the ruler which are in the between of ruler attached to labelsfinalinherited - secondaryRulerPerInterval → double?
-
secondaryRulerPerIntervaldraw the ruler between primary rulers as per interval providedfinalinherited - secondaryRulersHeight → double?
-
secondaryRulersHeightset the Height of the Rulers which are in the between of label Rulersfinalinherited - secondaryRulersWidth → double?
-
secondaryRulersWidthset 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
-
showSecondaryRulessets the visibility of the primary rulers.finalinherited - showSecondaryRulers → bool
-
showSecondaryRulessets the visibility of the secondary rulers.finalinherited - textStyle → TextStyle?
-
textStylesets 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