Skip to content

Commit 6f4642e

Browse files
author
Skandar Munir Ahmed
committed
named to positional
1 parent 34d5ad6 commit 6f4642e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/painters/solid_path_painter.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ class SolidCropPathPainter extends CustomPainter {
77
final Paint pathPaint;
88

99
/// Draw a solid path around the given path
10-
SolidCropPathPainter(this._path, {required this.pathPaint});
10+
SolidCropPathPainter(this._path, this.pathPaint);
1111

1212
/// Return a CustomPaint widget with the current CustomPainter
1313
static CustomPaint drawPath(Path path, {Paint? pathPaint}) {
1414
if (pathPaint != null) {
1515
return CustomPaint(
16-
painter: SolidCropPathPainter(path, pathPaint: pathPaint),
16+
painter: SolidCropPathPainter(path, pathPaint),
1717
);
1818
} else {
1919
return CustomPaint(
2020
painter: SolidCropPathPainter(
2121
path,
22-
pathPaint: Paint()
22+
Paint()
2323
..color = Colors.white
2424
..strokeWidth = _strokeWidth
2525
..style = PaintingStyle.stroke

0 commit comments

Comments
 (0)