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

Update dart-basics to support null safety #24

Merged
merged 6 commits into from
Oct 22, 2020
Merged

Update dart-basics to support null safety #24

merged 6 commits into from
Oct 22, 2020

Conversation

zdg2102
Copy link
Contributor

@zdg2102 zdg2102 commented Aug 31, 2020

Updates all code and tests, pubspec, and CLI config to support NNBD.

Pubspec and CLI changes will eventually have to be reverted once NNBD is included in the stable release.

@zdg2102 zdg2102 requested a review from johnsonmh August 31, 2020 20:21
@zdg2102
Copy link
Contributor Author

zdg2102 commented Oct 21, 2020

Finally fixed the pubspec issues, so this is ready for review now.

Copy link
Collaborator

@johnsonmh johnsonmh left a comment

Choose a reason for hiding this comment

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

██╗      ██████╗ ████████╗███╗   ███╗
██║     ██╔════╝ ╚══██╔══╝████╗ ████║
██║     ██║  ███╗   ██║   ██╔████╔██║
██║     ██║   ██║   ██║   ██║╚██╔╝██║
███████╗╚██████╔╝   ██║   ██║ ╚═╝ ██║
╚══════╝ ╚═════╝    ╚═╝   ╚═╝     ╚═╝

strings.max((a, b) => a.length.compareTo(b.length)).value,
equals('aaa'),
);
strings.max((a, b) => a.length.compareTo(b.length))!, equals('aaa'));
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: personally I prefer how the formatter formats this when there is a trailing comma.

Suggested change
strings.max((a, b) => a.length.compareTo(b.length))!, equals('aaa'));
strings.max((a, b) => a.length.compareTo(b.length))!, equals('aaa'),);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image 😂

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