PubspecDeps class

Pubspec dependency section: dependencies / dev_dependencies / asset paths to append under flutter.assets.

Constructors

PubspecDeps({required Map<String, String> deps, required Map<String, String> devDeps, required List<String> assets})
Creates a PubspecDeps payload.
const
PubspecDeps.empty()
Empty payload used when the dependencies: section is absent.
factory
PubspecDeps.fromYaml(YamlMap m)
Parses the dependencies: sub-map. Tolerates missing nested keys.
factory

Properties

assets List<String>
Asset paths to append under flutter.assets.
final
deps Map<String, String>
dependencies: map (package name → version constraint).
final
devDeps Map<String, String>
dev_dependencies: map (package name → version constraint).
final
hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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