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

Migrate to null safety #8

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

spyke555
Copy link

Using this library in a project and implemented the changes needed for this to compile under null safety. Figured I would contribute this back...

Using this library in a project and implemented the changes needed for this to compile under null safety. Figured I would contribute this back...
@spyke555
Copy link
Author

spyke555 commented Jun 15, 2021

Resolves issue #7

@spyke555
Copy link
Author

spyke555 commented Jun 15, 2021

Had to make a few changes to your pubspec.yaml to get this to compile correctly. Also note that pubspec.lock is not recommended to be checked in for library repos, only for applications. I also updated the pedantic version and added the non-nullabl exception. That one you may want to mess with, but this forked version now compiles just fine in my application.

this.autoStart = false,
this.initialBuilder,
required this.initialBuilder,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README and comment on line 16 should also be updated to reflect this change, or (better) initialBuilder should be nullable and optional to preserve the original behavior.

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