requiredPoints property
int
get
requiredPoints
Number of clicks/points required to complete this drawing on the chart.
Implementation
int get requiredPoints {
switch (this) {
case DrawingTool.pointer:
return 0;
case DrawingTool.horizontalLine:
case DrawingTool.horizontalRay:
case DrawingTool.verticalLine:
case DrawingTool.longPosition:
case DrawingTool.shortPosition:
case DrawingTool.textLabel:
return 1;
case DrawingTool.trendline:
case DrawingTool.extendedTrendline:
case DrawingTool.rectangle:
case DrawingTool.fibonacci:
case DrawingTool.ruler:
case DrawingTool.arrow:
return 2;
case DrawingTool.parallelChannel:
return 3;
}
}