Unhandled Exception: type 'String' is not a subtype of type 'int' of 'index' get data – Flutter
I want to take the product(entry) id in the database as the ['id'] of the object in the code, but I get this error code database Future<void> fetchAndSetProducts() async { final url = Uri.parse('https://flutter-update.firebaseio.com/products.json'); try { final response = await…