strokeWeight method
Implementation
void strokeWeight(double newWeight) {
if (newWeight < 0) {
throw Exception('Stroke weight must be >= 0');
}
_paintingContext.strokePaint.strokeWidth = newWeight.toDouble();
}
void strokeWeight(double newWeight) {
if (newWeight < 0) {
throw Exception('Stroke weight must be >= 0');
}
_paintingContext.strokePaint.strokeWidth = newWeight.toDouble();
}