参数类型 'List<dynamic>' 无法分配给参数类型 'List<Widget>'

The argument type 'List<dynamic>' can't be assigned to the parameter type 'List<Widget>'

我通过以下代码收到上述错误(问题):

Widget build(BuildContext context) {
return Scaffold(
  appBar: AppBar(title: const Text('DeliMeals')),
  body: GridView(
    children: DUMMY_CATEGORIES
        .map((categoryData) => CategoryItem(   //getting
              categoryData.title,             //the error
              categoryData.color,            //here
            ))
        .toList(),

dummy_data

const DUMMY_CATEGORIES = const [
Category(
id: 'c1',
title: 'Italian',
color: Colors.purple,
),
Category(
id: 'c2',
title: 'Quick & Easy',
color: Colors.red,
),
];

我只是在学习教程。讲师没有得到错误。 :(

指定地图类型map<Widget>

DUMMY_CATEGORIES
        .map<Widget>((categoryData) => CategoryItem(   
              categoryData.title,             
              categoryData.color,            
            ))
        .toList(),