use list generate wth objects in flutter code example Example: flutter list.generate final items = List<String>.generate(10000, (i) => "Item $i");