RouterTableBuilder class
仅对带 EntranceAnnotation 的入口文件运行,绝不对全量 .dart 跑。
若当前输入未标注入口注解,直接报错并提示配置 build.yaml。
支持分文件:主文件 + 各模块文件;允许拆分的模块 = defaultSplitModules + build.yaml 的 split_modules。
Constructors
- RouterTableBuilder(BuilderOptions _options)
Properties
-
buildExtensions
→ Map<
String, List< String> > -
Mapping from input file extension to output file extensions.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildStep buildStep) → Future< void> - 未配置或未在 include 中指定入口文件时:报错并立即终止,不写入任何文件。
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited