но я не могу показать мне эту странную ошибку, и я не знаю, для чего она нужна?

и это мой код (точно основанный на учебнике, который работал для учителя):
class _MyPageState extends State {
late List? listproduct;
@override
void initState() {
fetchAllProducts().then((value) => listproduct = value);
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: FutureBuilder(
future: fetchAllProducts(),
builder: (context, snapshot) {
if (snapshot.hasData) {
return ListView.builder(
itemCount: listproduct!.length,
itemBuilder: (context, index) {
return Card(
child: ListTile(
title: Text(listproduct![index].name.toString()),
subtitle: Text('${listproduct![index].price} تومان'),
leading:
Image.network(listproduct![index].images!.join(', ')),
),
);
},
);
} else if (snapshot.hasError) {
return Text('${snapshot.error}');
} else {
return const Center(child: CircularProgressIndicator());
}
},
),
);
}
}
Подробнее здесь: https://stackoverflow.com/questions/787 ... in-flutter
Мобильная версия