It is giving me an error when I try to parse my double value. Price is a String which I am trying to parse into a double but when I try to do that, it gives me an error. I don't know why I am getting this error since double.parse would turn the price into a double.
price: double.parse(
element.get('price'),
),
The error is Unhandled Exception: type 'double' is not a subtype of type 'String'