Notch constructor

const Notch(
  1. DistanceUnit distance, {
  2. Key? key,
  3. double? size,
  4. int? number,
  5. double? thickness,
  6. RulerSide? notchSide,
  7. RulerSide? numberSide,
  8. double? numberSpacing,
  9. Axis axis = Axis.horizontal,
  10. bool showLastPart = true,
  11. bool showLastNumber = false,
  12. bool? showBase,
  13. Color? notchColor,
  14. TextStyle? numberTextStyle,
  15. double? notchScaleFactor,
})

Implementation

const Notch(
  this.distance, {
  super.key,
  this.size,
  this.number,
  this.thickness,
  this.notchSide,
  this.numberSide,
  this.numberSpacing,
  this.axis = Axis.horizontal,
  this.showLastPart = true,
  this.showLastNumber = false,
  this.showBase,
  this.notchColor,
  this.numberTextStyle,
  this.notchScaleFactor,
})  : assert(number == null || number >= 0, "number must be positive"),
      assert(
        number == null || numberSpacing == null || numberSpacing >= 0,
        "numberSpacing must be positive",
      );