我与此面临着同样的问题
Error:
The argument type 'Null Function(DateTime, List<dynamic>)' can't be assigned
to the parameter type 'void Function(DateTime, List<dynamic>, List<dynamic>)'.
- 'DateTime' is from 'dart:core'. - 'List' is from 'dart:core'.
onDaySelected: (day, events) {
最佳答案
那是避免错误的一种方法
onDaySelected: (date, event, _) {
print(date.toIso8601String());
},
关于flutter - 错误: The argument type 'Null Function(DateTime, List<dynamic>)' can't be assigned to the parameter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64441372/