setResultForIdentifier method

void setResultForIdentifier(
  1. String identifier,
  2. dynamic result
)

Adds a result to the result map with the given identifier.

Used when the result is not a traditional answer result (e.g. signature result). Also used at Form Steps where there are multiple questions asked during a single step.

Implementation

void setResultForIdentifier(String identifier, dynamic result) {
  results[identifier] = result;
  endDate = DateTime.now();
}