Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

ivk1800
Copy link
Contributor

@ivk1800 ivk1800 commented Feb 24, 2019

@bparrishMines bparrishMines changed the title copying list for prevent mutate from outside [shared_preferences] copying list for prevent mutate from outside Feb 27, 2019
@collinjackson collinjackson self-requested a review July 15, 2019 23:39
Copy link
Contributor

@collinjackson collinjackson left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Especially thanks for including a unit test. :)

@@ -127,7 +128,7 @@ class SharedPreferences {
.invokeMethod('remove', params)
.then<bool>((dynamic result) => result);
} else {
_preferenceCache[key] = value;
_putToCache(key, value);
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is only used in one place, I don't think we need to split it out into its own method.

@collinjackson collinjackson merged commit f05b7c8 into flutter:master Jul 16, 2019
mithun-mondal pushed a commit to bKash-developer/archived_plugins that referenced this pull request Aug 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shared Preferences - Storing mutable lists results in wierd behavior
4 participants