Ruler.real constructor

Ruler.real({
  1. MeasureSystem system = MeasureSystem.metric,
  2. int graduation = 8,
  3. Key? key,
  4. Axis axis = Axis.horizontal,
  5. RulerSide? numberSide,
  6. RulerSide? notchSide,
  7. TextStyle? numberTextStyle,
  8. double? notchScaleFactor,
  9. Color? notchColor,
  10. bool? showBase,
  11. double? numberSpacing,
  12. double? thickness,
})

Implementation

Ruler.real({
  MeasureSystem system = MeasureSystem.metric,
  int graduation = 8,
  super.key,
  this.axis = Axis.horizontal,
  this.numberSide,
  this.notchSide,
  this.numberTextStyle,
  this.notchScaleFactor,
  this.notchColor,
  this.showBase,
  this.numberSpacing,
  this.thickness,
})  : _rulerType = _RulerType.real,
      notchWidth = system.toDistanceUnit(graduation),
      notchCount = null;