Skip to content

Code CleanUp and bug fixes. #127

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

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

Conversation

Carlosg19
Copy link
Contributor

Changes:

Changed all the extension names
added additional methods to make them more versatile: such as the methods "isColor" and "colorFromName"
fixed a bug on "colorFromHex" method that was updating the "hexToParse" string twice. because 2 "if" statements where executing in a row. That's why I am using "else if"
made it throw an exception when validation is not complete, instead of throwing a null; to stick to conventions.
removed a null check of "intColor" because if the algorithm is correct, there is no reason to check for null. If the logic is incorrect then, to code should throw an exception and we should fix the algorithm accordingly. This forces us to do things correct.
In colors.dart, that extension should not be there. So, I removed it... left everything else the same.
please squash my commits if you can. I accidentally made some other changes, and I had to write a couple more commits to undo them. just ignore them and squash them.

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.

1 participant