label property

String get label

Implementation

String get label {
  switch (this) {
    case DrawingTool.pointer:
      return 'Cursor';
    case DrawingTool.trendline:
      return 'Trendline';
    case DrawingTool.extendedTrendline:
      return 'Extended Trendline';
    case DrawingTool.horizontalLine:
      return 'Horizontal Line';
    case DrawingTool.horizontalRay:
      return 'Horizontal Ray';
    case DrawingTool.verticalLine:
      return 'Vertical Line';
    case DrawingTool.rectangle:
      return 'Rectangle';
    case DrawingTool.fibonacci:
      return 'Fibonacci Retracement';
    case DrawingTool.parallelChannel:
      return 'Parallel Channel';
    case DrawingTool.arrow:
      return 'Arrow';
    case DrawingTool.textLabel:
      return 'Text Label';
    case DrawingTool.longPosition:
      return 'Long Position';
    case DrawingTool.shortPosition:
      return 'Short Position';
    case DrawingTool.ruler:
      return 'Measure Ruler';
  }
}