Skip to content
小飞侠
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
菜单

博客

  1. 首页>
  2. 其他>
  3. dart 命名规范

dart 命名规范

  • Post author:xfxia
  • Post published:2023年9月11日
  • Post category:其他


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


你可能也喜欢

【数据结构习题】顺序表操作集

C# HttpWebResponse 获取数据乱码 有时候不是编码问题

OpenStack 基础平台部署

yolov8计算iou=0.5下的APs、APm、APl

D-Bus学习(四):基础小例子(同步和异步)

汇编语言——输出九九乘法表

数据字典与元数据

TypeError: bar() missing 1 required positional argument: ‘x‘报错

智慧园区打造

我遇到的JSON数据接口返回404错误的问题

GStreamer字幕解码模块实现

elementui TaBle表格表头添加icon,以及hover上去的提示文字

第十三届蓝桥杯省赛模拟赛题解(2022年第四次模拟赛)C/C++

C语言的递归-Recursion

PyTorch在GPU上跑代码需要迁移哪些东西?

mybatis sql 改写

CCS 5.5以上版本添加软件仿真(Simulation)功能,并通过两个demo(软件仿真实例)验证

pytorch 之 torch.eye()函数

电动车电机霍尔转换角

Entity Framework Connection String不保留密码的方法

目录

  • APICloud (3)
  • golang (228)
  • java (8,236)
  • linux (4,002)
  • mysql (2,800)
  • php (1,070)
  • python (5,439)
  • solidity (25)
  • uniapp (235)
  • vue (2,463)
  • 其他 (88,233)
  • 小程序 (801)

文章归档

  • 2023年十二月 (1872)
  • 2023年十一月 (477)
  • 2023年十月 (17371)
  • 2023年九月 (44974)
  • 2023年八月 (26399)
  • 2023年七月 (14793)
  • 2023年六月 (1)
  • 2023年五月 (2186)
  • 2023年四月 (3838)
  • 2023年三月 (1544)
  • 2023年二月 (3)
  • 2023年一月 (4)
  • 2022年十二月 (3)
  • 2022年十一月 (36)
  • 2022年十月 (16)
  • 2022年九月 (8)
  • 2021年九月 (1)
  • 2020年九月 (6)
  • 2020年八月 (5)

标签

Aave (1) cosmos (6) defi (255) flag (27) gitee (1) github (1) golang (234) java (8234) linux命令 (82) List (1) map (1115) mysql (3093) npm (237) tendermint (6) uuid (43) vant (64) vmware (270) 区块链 (63) 合约 (37) 小程序版本更新 (3)
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
Copyright xfxia.com 鲁ICP备19024253号-2
关闭菜单