dart 命名规范

mac2022-06-30  20

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}); }

转载于:https://www.cnblogs.com/njcxwz/p/10067541.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)