DartProjectFolder class

Base class for Dart project natures.

Detected when a folder contains pubspec.yaml. Can be instantiated directly for generic Dart projects that don't fit specific subtypes (FlutterProjectFolder, DartConsoleFolder, DartPackageFolder).

Inheritance
Implementers

Constructors

DartProjectFolder(FsFolder fsFolder, {required String projectName, String? version, Map<String, dynamic> dependencies = const {}, Map<String, dynamic> devDependencies = const {}, Map<String, dynamic> pubspec = const {}})

Properties

dependencies Map<String, dynamic>
Dependencies map from pubspec.yaml.
final
devDependencies Map<String, dynamic>
Dev dependencies map from pubspec.yaml.
final
fsFolder FsFolder
The underlying filesystem folder.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isPublishable bool
Whether this package is publishable to pub.dev.
no setter
name String
Folder name (basename of path).
no setterinherited
path String
Absolute path to the folder.
no setterinherited
projectName String
Project name from pubspec.yaml.
final
pubspec Map<String, dynamic>
Raw pubspec content as parsed YAML.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String?
Version from pubspec.yaml.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

isDartProject(String dirPath) bool
Check if a folder is a Dart project.