addGlobalKey method

void addGlobalKey(
  1. String key,
  2. GlobalKey<FormCraftTextFieldState> globalKey
)

Adds a FormCraftTextField widget to the internal map using the specified key.

The reason to make this method public only for testing purposes.

Implementation

void addGlobalKey(String key, GlobalKey<FormCraftTextFieldState> globalKey) {
  globalKeys[key] = globalKey;
}