target/target library
Classes
- Target
- 导出目标接口
- TargetFactory
- 目标工厂类
Functions
-
getDartFormatter(
String outputDirPath) → DartFormatter -
根据
outputDirPath向上查找项目根目录,读取 analysis_options.yaml 中的 formatter 配置(page_width、trailing_commas)以及 pubspec.yaml 中的语言版本, 创建并缓存对应的DartFormatter。 -
getDartLanguageVersion(
) → Version
Exceptions / Errors
- TargetSettingsError
- 目标配置错误
- UnsupportedTargetError
- 不支持的目标错误