PackageMetaProvider class Null safety

Sets the supported way of constructing PackageMeta objects.

These objects can be constructed from a filename, a directory or a LibraryElement. We allow different dartdoc implementations to provide their own PackageMeta types.

By using a different provider, these implementations can control how PackageMeta objects is built.

Constructors

PackageMetaProvider(PackageMeta _fromElement(LibraryElement, String, ResourceProvider), PackageMeta _fromFilename(String, ResourceProvider), PackageMeta _fromDir(Folder, ResourceProvider), ResourceProvider resourceProvider, Folder defaultSdkDir, {DartSdk defaultSdk})

Properties

defaultSdk → DartSdk
final
defaultSdkDir Folder
final
hashCode int
The hash code for this object. [...]
read-only, inherited
resourceProvider ResourceProvider
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

fromDir(Folder dir) PackageMeta
fromElement(LibraryElement library, String s) PackageMeta
fromFilename(String s) PackageMeta
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited