有什么方法可以引用pubspec.yaml中的名称吗



有什么方法可以引用pubspec.yaml中的预定义名称吗?

我试图引用";name";插件使用的结构中密钥的值

name: tpoly
description: A new Flutter application.
# [...]
flutter_launcher_name:
name: *name

最后插件应该接收(基本上应该替换值(,

flutter_launcher_name:
name: tpoly

首先使用&声明变量。这里,foo,例如:

name: &foo tpoly

要参考,请使用*

flutter_launcher_name:
name: *foo

最新更新