【发布时间】:2021-03-27 16:59:41
【问题描述】:
这是我正在编写的教程中名为“header”的小部件的定义:
AppBar header(context,{bool isAppTitle, String strTitle, hideBackButton = false})
{
return AppBar(
// code that defines AppBar
); // AppBar
} // header
还没有找到讨论初始行的文档......'heaser 括号内的 {} 子句的含义/紫色是什么:AppBar header(context, { ... } )。 谁能给我指一个解释的网站?
【问题讨论】:
-
这不是一个小部件,它是一个名为
header,返回类型为Appbar的函数