Skip to content

Add associateWith

Luan Nico requested to merge luannico/dartlin:luan.associate-with into master

Description

Identical to Kotlin, add an associateWith to simplify the use of associate when only the value is mapped. This is analogous to associateBy when only the key is mapped.

Checklist

Before you create this MR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting MRs.
  • My MR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The flutter analyzer (flutter analyze) does not report any problems on my MR.
  • I read and followed the Flutter Style Guide.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
  • I updated CHANGELOG.md to add a description of the change.
  • I am willing to follow-up on review comments in a timely manner.
  • I am done with this MR and removed the Draft status, by clicking on the Mark as ready button in this MR

Breaking Change

Does your MR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

Merge request reports