[英]Can't use final in Flutter(Dart)
You cannot declare variables inside a list.您不能在列表中声明变量。
Move this line final rows = await db.queryAllRows();
将此行移至
final rows = await db.queryAllRows();
and put it after this line: if (rowCount != 0) {
.并将其放在这一行之后:
if (rowCount != 0) {
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.