tool property

UDocDrawTool get tool

Implementation

UDocDrawTool get tool => _tool;
set tool (UDocDrawTool value)

Implementation

set tool(UDocDrawTool value) {
  _tool = value;
  if (shapeTools.contains(value)) _lastShape = value;
  if (value != UDocDrawTool.select) _selectedId = null;
  notifyListeners();
}