Why isn’t ‘[]’ defined for ‘Object’ when using Flutter’s groupBy date?
I have a list like this: List<ProductModel> productList = [ ProductModel(name: "Oranges", date: "2023-05-01"), ProductModel(name: "Apples", date: "2023-05-01"), ProductModel(name: "Kiwis", date: "2023-03-01"), ]; I would like to group the items by date using groupBy and display it in Widget build…