ParentStatement<T extends List<Statement>?> constructor

ParentStatement<T extends List<Statement>?>(
  1. 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;