RulerStyle constructor
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,
Implementation
RulerStyle({
super.primaryRulerColor = Colors.black54,
super.primaryRulersWidth = 1.0,
super.primaryRulersHeight = 10.0,
super.secondaryRulersHeight = 5.0,
super.secondaryRulersWidth = 1.0,
super.secondaryRulerColor = Colors.grey,
super.secondaryRulerPerInterval = 1.0,
super.showSecondaryRulers = true,
super.showPrimaryRulers = true,
this.textStyle = const TextStyle(
fontSize: 12.0,
color: Color.fromARGB(255, 86, 86, 86),
fontStyle: FontStyle.normal,
fontWeight: FontWeight.normal,
),
super.showLabel = true,
required this.rulerPosition,
super.labelOffset = 0,
super.rulersOffset = 0,
super.inverseRulers = false,
});