restrict method

void restrict(
  1. String name
)

Restrict a tool (e.g. during plan mode).

Implementation

void restrict(String name) {
  _tools[name]?.restricted = true;
}