dart 命名规范

1.类型 首字母大写 譬如

abstract class Shape

2.变量 驼峰式命名,首字母小写
class Article {
String headUrl;
String user;
String action;
String time;
String title;
String mark;
String imgUrl;
int agreeNum;
int commentNum;

Article(this.headUrl, this.user, this.action, this.time, this.title, this.mark, this.agreeNum, this.commentNum, {this.imgUrl});
}
posted @ 2018-12-04 21:46  一条大河啊波浪宽啊  阅读(443)  评论(0)    收藏  举报