有什么方法可以在 pubspec.yaml 中引用名称吗?
Is there any way to reference names within pubspec.yaml?
有什么方法可以引用 pubspec.yaml 中的预定义名称吗?
我试图在插件使用的结构中引用“名称”键的值
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
有什么方法可以引用 pubspec.yaml 中的预定义名称吗?
我试图在插件使用的结构中引用“名称”键的值
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