Describe the bug
During equality some cases of GeoJSONPolygon, GeoJSONMultiPolygon or GeoJSONMultiLineString it throws RangeError.
To Reproduce
Create variable polygon1 as type GeoJSONPolygon with some vertices (for example 10)
Create second variable polygon2 with same type, but with less quantity of vertices (for exmaple 5)
Equal polygon1 == polygon2 - it will throw an RangeError (index): Invalid value: Not in inclusive range 0..4: 5
I have created sample Flutter project for testing where FilledButton with primary color throws described error (tonals makes equalities which working as expected): https://github.com/dmisiek/geojson_vi_test
Expected behavior
Not throwing an RangeError during equality GeoJSONPolygon, GeoJSONMultiPolygon or GeoJSONMultiLineString.
Describe the bug During equality some cases of
GeoJSONPolygon
,GeoJSONMultiPolygon
orGeoJSONMultiLineString
it throwsRangeError
.To Reproduce
polygon1
as type GeoJSONPolygon with some vertices (for example 10)polygon2
with same type, but with less quantity of vertices (for exmaple 5)polygon1 == polygon2
- it will throw anRangeError (index): Invalid value: Not in inclusive range 0..4: 5
I have created sample Flutter project for testing where
FilledButton
with primary color throws described error (tonal
s makes equalities which working as expected): https://github.com/dmisiek/geojson_vi_testExpected behavior Not throwing an
RangeError
during equalityGeoJSONPolygon
,GeoJSONMultiPolygon
orGeoJSONMultiLineString
.Screenshots![image](https://github.com/chuyentt/geojson_vi/assets/79408124/cf31f5a3-b67f-4d2d-91d1-4c5255a1c32b)
Desktop
Smartphone:
Additional context