LinePainter constructor

LinePainter({
  1. double? page = 0.0,
  2. int? count = 0,
  3. int? realPage = 0,
  4. Color? indicatorBackColor = Colors.white,
  5. Color? indicatorColor = Colors.grey,
  6. double? padding = 3.0,
  7. double? indicatorWidth = 6.0,
})

Implementation

LinePainter({
  this.page = 0.0,
  this.count = 0,
  this.realPage = 0,
  this.indicatorBackColor = Colors.white,
  this.indicatorColor = Colors.grey,
  this.padding = 3.0,
  this.indicatorWidth = 6.0,
}) {
  _backLinePaint = Paint();
  _backLinePaint!.color = indicatorBackColor!;
  _backLinePaint!.strokeWidth = indicatorWidth!;

  _indicatorLinePaint = Paint();
  _indicatorLinePaint!.color = indicatorColor!;
  _indicatorLinePaint!.strokeWidth = indicatorWidth!;

  this.realPage ??= 0;
  this.page ??= 0.0;
  this.count ??= 0;
  this.indicatorBackColor ??= Colors.white;
  this.indicatorColor ??= Colors.grey;
  this.padding ??= 3.0;
}