PanUpdate method
dynamic
PanUpdate(
- dynamic context,
- dynamic details,
- dynamic selectedColor,
- dynamic strokeWidth,
- dynamic opacity,
Implementation
PanUpdate(context,details,selectedColor,strokeWidth,opacity){
if(details==null){
selectedColor=selectedColor;
opacity=opacity;
strokeWidth=strokeWidth;
}
else{
selectedColor=selectedColor;
opacity=opacity;
strokeWidth=strokeWidth;
RenderBox? renderBox = context.findRenderObject() as RenderBox;
points.add(DrawingPoints(
points: renderBox.globalToLocal(details.globalPosition),
paint: Paint()
..strokeCap = strokeCap
..isAntiAlias = true
..color = selectedColor.withOpacity(opacity)
..strokeWidth = strokeWidth));
return points;
}
}