Notch constructor
const
Notch(
- DistanceUnit distance, {
- Key? key,
- double? size,
- int? number,
- double? thickness,
- RulerSide? notchSide,
- RulerSide? numberSide,
- double? numberSpacing,
- Axis axis = Axis.horizontal,
- bool showLastPart = true,
- bool showLastNumber = false,
- bool? showBase,
- Color? notchColor,
- TextStyle? numberTextStyle,
- 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",
);