From af54dff3b47c6f4e346e41540a5e31999ed6982b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=90=A7=E7=8E=89?= Date: Thu, 29 Aug 2019 15:59:42 +0800 Subject: [PATCH] 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. --- lib/src/objects/parse_base.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/objects/parse_base.dart b/lib/src/objects/parse_base.dart index 173208c1c..b3b13fe20 100644 --- a/lib/src/objects/parse_base.dart +++ b/lib/src/objects/parse_base.dart @@ -186,7 +186,7 @@ abstract class ParseBase { /// To set an int, call setType and an int will be saved /// [bool] forceUpdate is always true, if unsure as to whether an item is /// needed or not, set to false - void set(String key, T value, {bool forceUpdate = false}) { + void set(String key, T value, {bool forceUpdate = true}) { if (value != null) { if (_getObjectData().containsKey(key)) { if (_getObjectData()[key] == value && !forceUpdate) {