你能帮我解决 flutter 中的这个错误吗,它说“错误:无法在字段初始值设定项中访问‘this’。’?

问题描述 投票:0回答:0

这是我的代码:

错误在行:

onTap: () => _showActionSheet(this.context),

我不知道这条线有什么问题,因为我是 flutter 的初学者。所以请帮我解决这个错误。

flutter computer-science
© www.soinside.com 2019 - 2024. All rights reserved.