【发布时间】:2021-01-19 06:08:59
【问题描述】:
我是 Flutter/Dart 的初学者,我经常看到在调用类或方法之前出现美元符号,示例如下(可在 Floor 包文档中找到):
final database = await $FloorAppDatabase.databaseBuilder('app_database.db').build();
我已经搜索了很多,我能找到的 Dart 中美元符号的唯一含义是用于字符串插值,但情况似乎并非如此。
【问题讨论】:
-
There's no mention of
$in Dart's official naming conventions - 所以我的猜测是首先询问编写代码的人。
标签: flutter dart dollar-sign