getFocusNode method

FocusNode getFocusNode(
  1. String key
)

Gets FocusNode for a specific field.

The key parameter is required and must be the key of an existing field.

Implementation

FocusNode getFocusNode(String key) {
  _checkIfKeyExist(key);

  return globalKeys[key]!.currentState!._focusNode;
}