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 #13
Comments
I do not think the package is maintained anymore. I've forked and migrated the package myself since I'm using it in one of my projects, you can depend on my fork like this:
Some changes will be required to your app/package because some parameters are now required but were not before, but it's as easy as providing some colors/widths...etc. Edit: To clarify, I'm not planning on making any changes or maintaining the library, you're welcome to fork my own fork and use that in your production code if you're afraid any changes will be introduced into master, or you can even depend on a specific ref. |
Can you upload as a new package in pub.dev? |
|
@6h4n3m if (borderWidth != null && borderColor == null ||
borderColor != null && borderWidth == null) {
throw ArgumentError("borderWidth and borderColor should both be set.");
} |
This code is obviously wrong. |
@volgin What do you mean wrong? It is code BEFORE null safety migration, after migration you have to specify both borderWidth and borderColor - which is wrong of course. |
@slavap Missing parenthesis. It should be:
This code never did what it was supposed to do. |
@volgin Why? At least in non-migrated to null safety version was no need to define explicitly both borderWidth and borderColor. |
@slavap I understand what you are saying. But the code that you posted does NOT do what you think it does. Without extra parenthesis it makes no sense. |
@volgin What parenthesis are you talking about? This code works and checks that both are null OR both are not null. |
Done. Sorry it's taken so long. |
Description
All dependencies are migrated to null safety. So we should migrate this package to null safety.
Resources
The text was updated successfully, but these errors were encountered: