无参数构造配置
无参数构造配置
组件的接口定义不包含必选构造参数,组件后面的“()”中不需要配置任何内容。例如,Divider组件不包含构造参数:
Column() {
Text('item 1')
Divider() // No parameter configuration of the divider component
Text('item 2')
}
1
2
3
4
5
2
3
4
5
组件的接口定义不包含必选构造参数,组件后面的“()”中不需要配置任何内容。例如,Divider组件不包含构造参数:
Column() {
Text('item 1')
Divider() // No parameter configuration of the divider component
Text('item 2')
}
This app can be installed on your PC or mobile device. This will allow this web app to look and behave like any other installed app. You will find it in your app lists and be able to pin it to your home screen, start menus or task bars. This installed web app will also be able to safely interact with other apps and your operating system.