SurveyFlow constructor
SurveyFlow(
- Collection collection, [
- Map<
String, dynamic> answers = const {}
Implementation
class SurveyFlow{final Collection collection;late Map<String,dynamic> _answers;late List<int> _route;late List<int> _history;late int _current;SurveyFlow(this.collection,[Map<String,dynamic> answers=const{}]){_answers=routedAnswers(collection,{...answers});_route=pageRoute(collection,_answers);_current=_route.firstOrNull??0;_history=[_current];}