On the next page, enter the feed title and description along with other properties, like public or private access, any search keyword tags, or cache times.
在接下来的页面上,输入提要标题和描述,以及其他属性,例如公共或私有访问、搜索关键词标签或缓存时间。
Because we put the val keyword before each parameter declaration, they are automatically converted to read-only fields with the same names with public reader methods of the same name.
因为我们在每一个参数声明前放置了val关键字,它们会被自动地转换为有同样名字的只读的字段,并且伴有同样名字的公开读取方法。
To grant package execution privileges to the public, you can use the grant keyword. For example, the following command grants execute privileges on the package to public.
要向公众授予包执行权限,您可以使用grant关键字。
If a parameter has the var keyword, a public writer method is also generated with the parameter’s name as a prefix, followed by _=.
如果参数有一个var关键字,一个公有的写方法会被自动生成,并且名字为参数名加下划线等号(_=)。
Class members and variables are considered public by default (there's no "public" keyword in Dart), although "public" for Dart is not a scope that encompasses the entire page - just the script.
类成员和变量被默认为是公有的(在Dart中没有“public”这个关键字),尽管对于Dart来说“public”仅仅是脚本,而并非一个涵盖整个页面的作用域。
Class members and variables are considered public by default (there's no "public" keyword in Dart), although "public" for Dart is not a scope that encompasses the entire page - just the script.
类成员和变量被默认为是公有的(在Dart中没有“public”这个关键字),尽管对于Dart来说“public”仅仅是脚本,而并非一个涵盖整个页面的作用域。
应用推荐