PanStart method
dynamic
PanStart(
- dynamic context,
- dynamic details,
- dynamic selectedColor,
- dynamic strokeWidth,
- dynamic opacity,
Implementation
PanStart(context,details,selectedColor,strokeWidth,opacity){
if(details==null){
selectedColor=selectedColor;
opacity=opacity;
strokeWidth=strokeWidth;
}
else{
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;
}
}