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

Add nuvigator maybeOf #117

Merged
merged 4 commits into from
Sep 13, 2024
Merged

Add nuvigator maybeOf #117

merged 4 commits into from
Sep 13, 2024

Conversation

raapperez
Copy link
Contributor

@raapperez raapperez commented Sep 13, 2024

Splits the nullOk logic in two:

  • Nuvigator.of => Should be used when its certain that the Nuvigator is available
  • Nuvigator.maybeOf => The existence of the Nuvigator is not required, and null return type is accepted.

Change from Map<String, Object>? initialArguments to Map<String, dynamic>? initialArguments as internally there is a cast to Map<String, dynamic>, it makes more sense.

@raapperez raapperez changed the title Add nuvigator maybe of Add nuvigator maybeOf Sep 13, 2024
@raapperez raapperez marked this pull request as ready for review September 13, 2024 19:05
@raapperez raapperez merged commit a5c99f2 into master Sep 13, 2024
5 checks passed
@raapperez raapperez deleted the add-nuvigator-maybe-of branch September 13, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants