currentTool property

DrawingTool get currentTool

Gets the currently selected drawing tool.

See DrawingTool for a list of available tools.

Implementation

DrawingTool get currentTool => currentToolListenable.value;
set currentTool (DrawingTool tool)

Sets the current drawing tool (e.g., pencil, brush).

See DrawingTool for a list of available tools.

Implementation

set currentTool(DrawingTool tool) {
  currentToolListenable.value = tool;
}