Skip to content

Commit 880a4aa

Browse files
yulingtianxiaphillwiggins
authored andcommitted
Bug fix: 'set' method should force update by default. If someone change a property of object from 'get' method and then 'set' it in ParseObject, it should be dirty. (#262)
1 parent 0f64a3d commit 880a4aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/objects/parse_base.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ abstract class ParseBase {
186186
/// To set an int, call setType<int> and an int will be saved
187187
/// [bool] forceUpdate is always true, if unsure as to whether an item is
188188
/// needed or not, set to false
189-
void set<T>(String key, T value, {bool forceUpdate = false}) {
189+
void set<T>(String key, T value, {bool forceUpdate = true}) {
190190
if (value != null) {
191191
if (_getObjectData().containsKey(key)) {
192192
if (_getObjectData()[key] == value && !forceUpdate) {

0 commit comments

Comments
 (0)