register method

void register(
  1. Tool tool, {
  2. ToolCategory category = ToolCategory.custom,
})

Register a tool with a category.

Implementation

void register(Tool tool, {ToolCategory category = ToolCategory.custom}) {
  _tools[tool.name] = ToolRegistration(tool: tool, category: category);
}