rewriteActiveSurvey method

void rewriteActiveSurvey(
  1. bool actionTaken,
  2. int shownCount
)

Need to rewrite the entire survey structure for property to be persisted.

Implementation

void rewriteActiveSurvey(bool actionTaken, int shownCount) {
  assert(activeSurvey != null);
  properties[activeSurvey!] = {
    DevToolsStoreKeys.surveyActionTaken.name: actionTaken,
    DevToolsStoreKeys.surveyShownCount.name: shownCount,
  };
}