LevelMapPainter constructor
LevelMapPainter({
- required LevelMapParams params,
- ImagesToPaint? imagesToPaint,
Implementation
LevelMapPainter({required this.params, this.imagesToPaint})
: _pathPaint = Paint()
..strokeWidth = params.pathStrokeWidth
..color = params.pathColor
..strokeCap = StrokeCap.round,
_shadowPaint = Paint()
..strokeWidth = params.pathStrokeWidth
..color = params.pathColor.withOpacity(0.2)
..strokeCap = StrokeCap.round,
_nextLevelFraction =
params.currentLevel.remainder(params.currentLevel.floor());