setData method Null safety

void setData(
  1. Map<String, dynamic> data
)

Implementation

void setData(Map<String, dynamic> data) {
  // Save the data from the controllers
  formValueMap = data;

  // Reset the form status
  setValidationMessage(null);

  // Set the new form status
  setFormStatus();

  // Rebuild the UI
  notifyListeners();
}