setResultForIdentifier method

void setResultForIdentifier (String identifier, 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) {
  this._results[identifier] = result;
  this.endDate = DateTime.now();
}