Try removing the extra positional arguments, or specifying the name for named arguments.

江南北

关注

阅读 41

2023-08-05

Try removing the extra positional arguments, or specifying the name for named arguments._组件传参

报错图片应该是这样的。

组件传参与一般的函数传参不一样,我们需要在调用它的地方,括号里面加上每个参数声明时候的名字 。

例如:

声明时候:

Try removing the extra positional arguments, or specifying the name for named arguments._Dart_02

在调用时候:

Try removing the extra positional arguments, or specifying the name for named arguments._Dart_03

精彩评论(0)

0 0 举报