Package class
A LibraryContainer that contains Library objects related to a particular package.
- Inheritance
-
- Object
- LibraryContainer
- Package
- Implemented types
- Mixed-in types
Constructors
- Package.fromPackageMeta(PackageMeta packageMeta, PackageGraph packageGraph)
-
factory
Properties
-
allLibraries
→ Set<
Library> -
Holds all libraries added to this package. May include non-documented
libraries, but is not guaranteed to include a complete list of
non-documented libraries unless they are all referenced by documented ones.
final
- baseHref → String
-
latefinal
- canonicalLibrary → Library?
-
no setteroverride
-
categories
→ List<
Category> -
The categories, sorted alphabetically by name.
latefinal
-
categoriesWithPublicLibraries
→ Iterable<
Category> -
no setter
- config → DartdocOptionContext
-
latefinal
-
containerOrder
→ List<
String> -
Order by which this container should be sorted.
no setteroverride
- defaultCategory ↔ Category
-
The default, unnamed category.
latefinal
- definingCommentReferable → CommentReferable
-
For testing / comparison only, get the comment referable from where this
ElementType was defined. Override where an
Element
is available.no setterinherited - documentation → String?
-
latefinal
- documentationAsHtml → String?
-
latefinal
-
documentationFrom
→ List<
Locatable> -
no setteroverride
- documentationIsLocal → bool
-
True if documentationFrom contains only one item,
this
.no setterinherited -
documentedCategories
→ Iterable<
Category> -
no setter
-
documentedCategoriesSorted
→ Iterable<
Category> -
The documented categories, sorted either by the 'categoryOrder' option, or
by name.
no setter
- documentedWhere → DocumentLocation
-
Returns the location of documentation for this package, for linkToRemote
and canonicalization decision making.
latefinal
- element → Element?
-
no setter
- enclosingElement → Warnable?
-
no setter
- enclosingName → String
-
The name of the container or object that this LibraryContainer is a part
of. Used for sorting in containerOrder.
no setteroverride
- filePath → String
-
no setter
- fileType → String
-
latefinal
- fullyQualifiedName → String
-
no setteroverride
- hasCategories → bool
-
Return true if the code has defined non-default categories for libraries
in this package.
no setter
- hasDocumentation → bool
-
no setteroverride
- hasDocumentedCategories → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasHomepage → bool
-
no setter
- hasPublicLibraries → bool
-
no setterinherited
- homepage → String
-
no setter
- href → String
-
no setteroverride
- isCanonical → bool
-
no setteroverride
- isDocumented → bool
-
no setteroverride
- isFirstPackage → bool
-
Is this the package at the top of the list? We display the first
package specially (with "Libraries" rather than the package name).
no setter
- isLocal → bool
-
Return true if this is the default package, this is part of an embedder
SDK, or if DartdocOptionContext.autoIncludeDependencies is true -- but
only if the package was not excluded on the command line.
latefinal
- isPublic → bool
-
If we have public libraries, this is the default package, or we are
auto-including dependencies, this package is public.
latefinal
- isSdk → bool
-
Does this container represent the SDK? This can be false for containers
that only represent a part of the SDK.
no setteroverride
- kind → String
-
no setteroverride
-
libraries
→ List<
Library> -
finalinherited
- library → Library?
-
no setterinherited
- location → String
-
A string indicating the URI of this Locatable, usually derived from
Element.location
.no setteroverride -
locationPieces
→ Set<
String> -
Pieces of the location, split to remove 'package:' and slashes.
no setteroverride
- modelBuilder → ModelObjectBuilder
-
Override implementations in unit tests to avoid requiring literal
ModelElements.
latefinalinherited
- name → String
-
no setteroverride
- namePart → String
-
Utility getter/cache for
_MarkdownCommentReference._getResultsForClass
.latefinalinherited -
namePieces
→ Set<
String> -
latefinalinherited
-
nameToCategory
↔ Map<
String?, Category> -
A map of category name to the category itself.
latefinal
- oneLineDoc → String
-
no setteroverride
- package → Package
-
no setter
- packageGraph → PackageGraph
-
no setteroverride
- packageMeta → PackageMeta
-
no setter
- packagePath → String
-
latefinal
-
publicLibraries
→ Iterable<
Library> -
no setteroverride
-
publicLibrariesSorted
→ List<
Library> -
latefinalinherited
-
referenceChildren
→ Map<
String, CommentReferable> -
Map of referenceName to the elements that are a member of
this
, but not this model element itself. Can be cached.latefinal -
referenceGrandparentOverrides
→ Iterable<
CommentReferable> ? -
Replace the parents of parents.
referenceBy
ignores whatever might otherwise be implied by thereferenceParents
ofreferenceParents
, replacing them with this.no setterinherited - referenceName → String
-
no setter
-
referenceParents
→ Iterable<
CommentReferable> -
Iterable of immediate "parents" to try resolving component parts.
referenceBy stops at the first parent where a part is found.
Can be cached.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → Scope?
-
For any
CommentReferable
where an analyzerScope
exists (or can be constructed), implement this. This will take priority over lookups viareferenceChildren
. Can be cached.no setterinherited - sortKey → String
-
Sorting key. containerOrder should contain these.
no setterinherited
- toolInvocationIndex ↔ int
-
Number of times we have invoked a tool for this package.
getter/setter pair
-
usedAnimationIdsByHref
↔ Map<
String?, Set< String> > -
getter/setter pair
- version → String
-
no setter
Methods
-
addToCategories(
Categorization categorization, void addTo(Category)) → void -
Adds
categorization
to one or more categories in the nameToCategory map, if it is annoated with{@category}
, or `defaultCategory, if not, via theaddTo
callback. -
childLookups(
List< String> reference) → Iterable<ReferenceChildrenLookup> -
A list of lookups that should be attempted on children based on
reference
. This allows us to deal with libraries that may have separators in them.referenceBy
stops at the first one found.inherited -
compareTo(
LibraryContainer other) → int -
Compares this object to another object.
inherited
-
initializeCategories(
) → void - Initializes the defaultCategory and the nameToCategory map, with all appropriate elements.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
referenceBy(
List< String> reference, {required bool filter(CommentReferable?), required bool allowTree(CommentReferable?), bool tryParents = true, Iterable<CommentReferable> ? parentOverrides}) → CommentReferable? -
Look up a comment reference by its component parts.
inherited
-
scoreCanonicalCandidates(
Iterable< Library> libraries) → List<ScoredCandidate> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
warn(
PackageWarning kind, {String? message, Iterable< Locatable> referredFrom = const [], Iterable<String> extendedDebug = const []}) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited