onCloseSurvey property

(bool Function(BuildContext context, QuestionResult resultFunction()?)?) onCloseSurvey
final

Defines what should happen if the survey should be closed

If the function returns true, the default behavior will still be executed after it.

Parameters:

  • context: The build context of the widget triggering the next step.
  • resultFunction: A function that returns a QuestionResult object.

Returns:

  • true if the default behavior should still be executed after this function, false otherwise.

Implementation

final bool Function(
  BuildContext context,
  QuestionResult Function()? resultFunction,
)? onCloseSurvey;