getSymbol method

Widget getSymbol(
  1. double width,
  2. double height, {
  3. Color? color,
})

Implementation

Widget getSymbol(double width, double height, {Color? color}) {
  switch (this) {
    case ToolboxCategory.variables:
      return Icon(Icons.data_object, size: width);
    case ToolboxCategory.loops:
      return Icon(Icons.loop, size: width);
    case ToolboxCategory.decisionStructures:
      return Icon(Icons.alt_route, size: width);
    case ToolboxCategory.other:
      return Icon(Icons.dashboard_outlined, size: width);
  }
}