iconOf static method

IconData iconOf(
  1. UDocDrawTool tool
)

Implementation

static IconData iconOf(UDocDrawTool tool) {
  switch (tool) {
    case UDocDrawTool.none:
      return Icons.touch_app_rounded;
    case UDocDrawTool.select:
      return Icons.near_me_rounded;
    case UDocDrawTool.pen:
      return Icons.edit_rounded;
    case UDocDrawTool.highlighter:
      return Icons.brush_rounded;
    case UDocDrawTool.line:
      return Icons.horizontal_rule_rounded;
    case UDocDrawTool.arrow:
      return Icons.north_east_rounded;
    case UDocDrawTool.doubleArrow:
      return Icons.open_in_full_rounded;
    case UDocDrawTool.rectangle:
      return Icons.crop_square_rounded;
    case UDocDrawTool.roundedRectangle:
      return Icons.rounded_corner_rounded;
    case UDocDrawTool.ellipse:
      return Icons.circle_outlined;
    case UDocDrawTool.areaHighlight:
      return Icons.highlight_alt_rounded;
    case UDocDrawTool.textBox:
      return Icons.text_fields_rounded;
    case UDocDrawTool.stickyNote:
      return Icons.sticky_note_2_outlined;
    case UDocDrawTool.eraser:
      return Icons.auto_fix_normal_rounded;
  }
}