DependenciesOptions class
Class representing the available options for analyzing Dart dependencies.
Constructors
- DependenciesOptions.new({required String path, bool reverse = false, bool outputConsole = true, String? outputTextFile = '', String? outputJsonFile = '', String? outputYamlFile = '', String sortMode = 'dependencies', String status = 'valid'})
- Creates a new DependenciesOptions instance with the provided settings.
-
DependenciesOptions.fromArgs(List<
String> args) -
Creates a DependenciesOptions object from the command-line arguments.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- libPath → String
-
Returns the full path to the
lib/
folder inside the project.no setter - outputConsole → bool
-
If
true
, display the results in the console.final - outputJsonFile → String?
-
Path to a JSON file where results should be saved (optional).
final
- outputTextFile → String?
-
Path to a text file where results should be saved (optional).
final
- outputYamlFile → String?
-
Path to a YAML file where results should be saved (optional).
final
- path → String
-
Base path of the project (typically the root containing
pubspec.yaml
).final - reverse → bool
-
If
true
, reverse the order of dependencies in the output.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sortMode → String
-
Sorting mode to use when displaying results.
final
- status → String
-
Current status of the options parsing (used to indicate help mode or errors).
final
Methods
-
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