DepsSortPerformer class

Sorts main and dev dependencies in a pubspec.yaml file.

For simplicity:

  • Sorts packages alphabetically.
  • Places packages by source order: sdk, hosted and rest.
  • Will remove all comments and extra new lines.
  • Doesn't know anything about dependency_overrides node.

Returns true on any change.

Inheritance

Constructors

DepsSortPerformer.new(DepsSortParams params)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
params DepsSortParams
Custom params required by any implementation of a Performer.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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