RulerStyle constructor

RulerStyle({
  1. Color? primaryRulerColor = Colors.black54,
  2. double? primaryRulersWidth = 1.0,
  3. double? primaryRulersHeight = 10.0,
  4. double? secondaryRulersHeight = 5.0,
  5. double? secondaryRulersWidth = 1.0,
  6. Color? secondaryRulerColor = Colors.grey,
  7. double? secondaryRulerPerInterval = 1.0,
  8. bool showSecondaryRulers = true,
  9. bool showPrimaryRulers = true,
  10. TextStyle? textStyle = const TextStyle(fontSize: 12.0, color: Color.fromARGB(255, 86, 86, 86), fontStyle: FontStyle.normal, fontWeight: FontWeight.normal),
  11. bool? showLabel = true,
  12. required RulerPosition? rulerPosition,
  13. double? labelOffset = 0,
  14. double? rulersOffset = 0,
  15. 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,
});