ParentStatement<T extends List<Statement>? > constructor
ParentStatement<T extends List<Statement>? > (
- T children
Implementation
ParentStatement(this.children)
: hasDeclarations = children?.any((child) => switch (child) {
VariableDeclaration() ||
FunctionRule() ||
MixinRule() =>
true,
ImportRule(:var imports) =>
imports.any((import) => import is DynamicImport),
_ => false,
}) ??
false;