PackageResource class

Constructors

PackageResource({required String parentDirectoryPath, required ResourceProvider resourceProvider, required String projectName, required FileSystem fileSystem, bool isSidecarEnabled = true, SidecarSpec? sidecarProjectConfiguration})

Properties

fileSystem → FileSystem
final
hashCode int
The hash code for this object.
no setterinherited
isSidecarEnabled bool
final
parentDirectoryPath String
final
projectFolder → Folder
no setter
projectName String
final
resourceProvider → ResourceProvider
final
root Uri
no setter
rootPath String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sidecarProjectConfiguration → SidecarSpec?
no setter

Methods

addPackageConfig(PackageConfig packageConfig) → void
build() → void
createRunner() → void
deleteFile(String relativePath) → void
inherited
deleteLibFolder() → void
inherited
getFile(String path) → File
inherited
getFolder(String path) → Folder
inherited
modifyFile(String relativePath, String content) → File
inherited
modifySidecarYaml(SidecarSpec configuration) → void
newAnalysisOptionsYamlFile(String directoryPath, String content) → File
newFolder(String path) → Folder
inherited
newPackageConfigJsonFile(String content) → File
newPubspecYamlFile(Pubspec pubspec) → File
newSidecarOptionsFile(String directoryPath, String content) → File
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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