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

fix: stringify instance with long properties #97

Merged
merged 3 commits into from
Feb 8, 2021
Merged

fix: stringify instance with long properties #97

merged 3 commits into from
Feb 8, 2021

Conversation

PegasisForever
Copy link
Contributor

@PegasisForever PegasisForever commented Jan 13, 2021

Status

READY

Breaking Changes

NO

Description

When calling toString on a long Iterable, dart will omit some of the elements (this is a feature), see Iterable#toString.
This causes, when stringify an equatable with very long properties, some of the properties got omitted.
This pr fixes it.

Related Issues

#94

Related PRs

List related PRs against other branches:

branch PR
null_safety #98

Todos

  • Tests

Steps to Test or Reproduce

See the test with SuperLongProperties stringify, the old code will not pass this test.

Impact to Remaining Code Base

This PR will affect:

  • toString method of Equatable subclasses with long enough properties and stringify = true

@felangel felangel added the enhancement New feature or request label Feb 8, 2021
Copy link
Owner

@felangel felangel left a comment

Choose a reason for hiding this comment

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

Thanks so much for the contribution! 💯 💙

@felangel felangel added bug Something isn't working and removed enhancement New feature or request labels Feb 8, 2021
@felangel felangel merged commit 48f33d4 into felangel:master Feb 8, 2021
@felangel felangel mentioned this pull request Feb 8, 2021
@polRk
Copy link

polRk commented Apr 22, 2021

#95 ????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants