0
点赞
收藏
分享

微信扫一扫

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._组件传参

报错图片应该是这样的。

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

例如:

声明时候:

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 条评论