cancelFocusNodes method

void cancelFocusNodes()

Cancel all focus nodes added.

It is fine to call this method and then add additional focus nodes.

Implementation

void cancelFocusNodes() {
  for (final focusNode in _focusNodes) {
    focusNode.dispose();
  }
  _focusNodes.clear();
}