setSelectedDrawingStrokeWidth method
Updates the stroke width of the currently selected drawing.
Implementation
void setSelectedDrawingStrokeWidth(double strokeWidth) {
final sel = selectedDrawing;
if (sel != null && !sel.isLocked) {
recordDrawingSnapshot();
final index = _drawings.indexWhere((d) => d.id == sel.id);
if (index >= 0) {
_drawings[index] = _drawings[index].copyWith(strokeWidth: strokeWidth);
notifyListeners();
}
}
}