strokeWeight method

void strokeWeight(
  1. double newWeight
)

Implementation

void strokeWeight(double newWeight) {
  if (newWeight < 0) {
    throw Exception('Stroke weight must be >= 0');
  }

  _paintingContext.strokePaint.strokeWidth = newWeight.toDouble();
}