registerFieldKey method

dynamic registerFieldKey (String attribute, GlobalKey<State<StatefulWidget>> key)

Implementation

registerFieldKey(String attribute, GlobalKey key) {
  assert(_fieldKeys.containsKey(attribute) == false,
      "Field with attribute '$attribute' already exists. Make sure that two or more fields don't have the same attribute name.");
  this._fieldKeys[attribute] = key;
}