setInitialValues method
Set the initial values for multiple form attributes.
The setInitialValues function is used to set the initial values for multiple
form attributes at once. It takes a Map where the keys represent the identifiers
of the form attributes, and the corresponding values are the initial values to be
set. The function iterates through the map and sets the initial values for each
attribute using the setInitialValue function.
Parameters:
values: AMapwhere keys are form attribute identifiers, and values are the initial values to be set for each attribute.
Implementation
setInitialValues(Map<String, dynamic> values) {
values.forEach((attribute, value) {
setInitialValue(attribute, value);
});
}