NavCustomPainter constructor

NavCustomPainter(
  1. double startingLoc,
  2. int itemsLength,
  3. Color color,
  4. TextDirection textDirection,
)

Implementation

NavCustomPainter(
    double startingLoc, int itemsLength, this.color, this.textDirection) {
  final span = 1.0 / itemsLength;
  s = 0.2;
  double l = startingLoc + (span - s) / 2;
  loc = textDirection == TextDirection.rtl ? 0.8 - l : l;
}