replaceTool method
Replace a mouse tool of a given name with a new tool, or remove an existing tool (if the newtool is null). This searches the #mouseDownTools, #mouseMoveTools, and #mouseUpTools lists. The new tool is inserted into the same list in which the same-named tool is found, at the same position as the old tool. However, if no existing tool with the given name is present, this does not add the new tool to any list, since it cannot know where it should be added. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {string} name the type of tool, such as "Dragging" or "ClickSelecting". @param {Tool} newtool If null, any tool that the search finds will just be removed from the list in which it was found. @return {Tool} the old tool that was replaced by the new one; this is null if none was found and the new tool was not added to any mouse tool list
Implementation
_i3.Tool? replaceTool(
_i2.String name,
_i3.Tool newtool,
) =>
_i4.callMethod(
this,
'replaceTool',
[
name,
newtool,
],
);