SurveyStateProvider constructor

SurveyStateProvider({
  1. Key? key,
  2. required TaskNavigator taskNavigator,
  3. required dynamic onResult(
    1. SurveyResult
    ),
  4. required Widget child,
  5. required GlobalKey<NavigatorState> navigatorKey,
  6. StepShell? stepShell,
})

Implementation

SurveyStateProvider({
  super.key,
  required this.taskNavigator,
  required this.onResult,
  required super.child,
  required this.navigatorKey,
  this.stepShell,
})  : _state = LoadingSurveyState(),
      startDate = DateTime.now();