File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,19 @@ class SolidCropPathPainter extends CustomPainter {
7
7
final Paint pathPaint;
8
8
9
9
/// Draw a solid path around the given path
10
- SolidCropPathPainter (this ._path, { required this .pathPaint} );
10
+ SolidCropPathPainter (this ._path, this .pathPaint);
11
11
12
12
/// Return a CustomPaint widget with the current CustomPainter
13
13
static CustomPaint drawPath (Path path, {Paint ? pathPaint}) {
14
14
if (pathPaint != null ) {
15
15
return CustomPaint (
16
- painter: SolidCropPathPainter (path, pathPaint: pathPaint ),
16
+ painter: SolidCropPathPainter (path, pathPaint),
17
17
);
18
18
} else {
19
19
return CustomPaint (
20
20
painter: SolidCropPathPainter (
21
21
path,
22
- pathPaint : Paint ()
22
+ Paint ()
23
23
..color = Colors .white
24
24
..strokeWidth = _strokeWidth
25
25
..style = PaintingStyle .stroke
You can’t perform that action at this time.
0 commit comments