A versatile mapping package for Flutter. Simple and easy to learn, yet completely customizable and configurable, it's the best choice for mapping in your Flutter app.
When updating the holePointsList, and not points of a Polygon, the new algorithm does not detect the change.
How can we reproduce it?
-
Do you have a potential solution?
The issue is that the holePointsList is not checked in the hashCode, whilst it is checked in the equality operator. Additionally, the equality operator does not check for deep equality for holePointsList, which would fit better with the surrounding list equality check.
The new algorithm uses the Polygon.hashCode as int keys of a SplayTreeMap. It does not use a HashMap, to try to reduce memory consumption.
Platforms
All
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console
What is the bug?
When updating the
holePointsList
, and notpoints
of aPolygon
, the new algorithm does not detect the change.How can we reproduce it?
-
Do you have a potential solution?
The issue is that the
holePointsList
is not checked in thehashCode
, whilst it is checked in the equality operator. Additionally, the equality operator does not check for deep equality forholePointsList
, which would fit better with the surrounding list equality check.The new algorithm uses the
Polygon.hashCode
asint
keys of aSplayTreeMap
. It does not use aHashMap
, to try to reduce memory consumption.Platforms
All
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console