- Include
ApiDeclarationStatus.nonPublicskeleton declarations in
ApiSummary.librariesunconditionally soapi.jsonandapi.yamlmatch
api.txt. - Fail
expectApiSummaryCleanandapi_summary --checkby default when
non-public types leak into public API signatures (includinglib/src/types
or package-owned types referenced by the primary barrel without being
exported by it). - Add
allowNonPublicTypesoptional named constructor parameter to
ApiSummaryCustomizerand--allow-non-public-typesflag toapi_summary --check. - Add
includeImplicitNonPublicMembersandincludeReferencedTypesoptional
named constructor parameters toApiSummaryCustomizer. - Canonicalize the sort order of libraries, declarations, constructors,
members, named parameters, and named record fields in theApiSummarymodel
(api.jsonandapi.yaml) to matchapi.txt, and sort getter/setter pairs
ahead of suffixed names (such asa,a=,a9,a9=). - Track parameter
defaultValueonApiParameter(including inheritedsuper.
defaults) and render non-null public default values in text, JSON, and YAML
summaries (#2461). - Track
constantValueonisConstApiExecutablegetters and render public
constant values in text, JSON, and YAML summaries
(#2462). - Resolve
sealedclassApiClass.immediateSubtypesto the public subtype
frontier (expanding non-publicsealedintermediates, excluding extension
types, disambiguating colliding subtype names, and checking primary-barrel
exports), makeimmediateSubtypesoptional inApiClass.new, and add
ApiClass.hasNonPublicSubtypes(rendered as<non-public>inapi.txt)
when uncovered non-public subtypes exist. - Track
pubspec.yamlruntimedependenciesconstraints for external packages
referenced or re-exported in the public API (including transitive re-exports
and external typedefs) onApiSummary.dependencies, and render them inline
on referencedpackage:...library headers inapi.txt(or under
dependencies:when no inline header exists)
(#2463). - Normalize caret-equivalent version constraints (such as
>=3.9.0 <4.0.0to
^3.9.0) inenvironmentanddependencies.