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