getTool method

Tool getTool(
  1. String name
)

Implementation

Tool getTool(String name) {
  for (final tool in tools) {
    if (tool.name == name) {
      return tool;
    }
  }
  throw Exception("Tool was not found $name");
}