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


你可能也喜欢

100g光模块厂家排名_亨通100G光模块全球“首秀”,为“自由之光”加速

Android Paging组件Demo

机器学习中的算法-Boost算法

反转二叉树C++

HTML给SELECT标签赋值

Android Studio的Gradle的加速

Android入门–弹出三个按钮的对话框

apifox helper插件使用–自动生成接口文档

virtual box安装Ubuntu操作系统

Flink系列02: FlinkCEP从源码开始学习(个体模式与模式组)

【C++】数字直角三角形

Android学习笔记之——NDK报错

动态修改宽度

springboot配置文件配置map类型数据并读取使用

PL/SQL执行oracle存储过程

朴素贝叶斯的三个常用模型:高斯(GaussianNB)、多项式(multinomial model)、伯努利(Bernoulli model)

OSPF分流实验

记录在使用git进行上传本地文件到github上遇到的一些问题以及解决办法

51单片机学习——7–8*8LED点阵显示

从上到下打印二叉树

目录

  • 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
关闭菜单