getValue method

dynamic getValue(
  1. String attribute
)

Get the current value of a form attribute.

The getValue function is used to retrieve the current value of a specific form attribute. It first checks if the attribute exists in the _attributes map. If the attribute exists, it returns the current value from the _values map. If the attribute is not found, the function returns null.

Parameters:

  • attribute: The identifier of the form attribute for which you want to retrieve the current value.

Implementation

dynamic getValue(String attribute) {
  if (!_attributes.containsKey(attribute)) {
    return null;
  }
  return _values[attribute];
}