Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: OnDialogueChoice now returns null by default #2234

Merged
merged 4 commits into from Dec 25, 2022
Merged

Conversation

st-pasha
Copy link
Contributor

Description

Previously, onDialogueChoice was returning a never-completing future, which is both more error-prone, and prevents a use-case where a dialogue view would perform some async action without ultimately making a selection.

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.

Breaking Change?

  • No, this PR is not a breaking change.

Related Issues

Closes #2216

@st-pasha st-pasha added the jenny Issues/PRs related to the Jenny package label Dec 23, 2022
@spydon spydon enabled auto-merge (squash) December 25, 2022 17:59
@spydon spydon merged commit e2ab129 into main Dec 25, 2022
@spydon spydon deleted the ps.dialogue-choices branch December 25, 2022 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jenny Issues/PRs related to the Jenny package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DialogueView.onChoiceStart should return null if no choice was made
2 participants