MergedPubspec class final

The pubspec.yaml of the app, merged from every PubspecContribution.

Constructors

MergedPubspec({Map<String, MergedDependency> dependencies = const {}, Map<String, MergedDependency> devDependencies = const {}, VersionConstraint? sdk, VersionConstraint? flutter, String? sdkText, String? flutterText, List<ContributionOrigin> sdkOrigins = const [], List<ContributionOrigin> flutterOrigins = const [], List<String> assets = const [], List<PubspecFont> fonts = const [], bool generate = false, bool usesMaterialDesign = false})
Creates the merged pubspec.
const

Properties

assets → List<String>
The assets, in the order first contributed.
final
dependencies → Map<String, MergedDependency>
The dependencies, by package, in the order first contributed.
final
devDependencies → Map<String, MergedDependency>
The dev dependencies that are not also dependencies.
final
flutter → VersionConstraint?
The Flutter SDK constraint, if any contribution sets one.
final
flutterOrigins → List<ContributionOrigin>
The contributors whose constraints make flutter what it is.
final
flutterText → String?
flutter as written; see MergedDependency.constraintText.
final
fonts → List<PubspecFont>
The font families, with the files of every contribution.
final
generate → bool
Whether the app generates code from its l10n.yaml.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sdk → VersionConstraint?
The Dart SDK constraint, if any contribution sets one.
final
sdkOrigins → List<ContributionOrigin>
The contributors whose constraints make sdk what it is.
final
sdkText → String?
sdk as written; see MergedDependency.constraintText.
final
usesMaterialDesign → bool
Whether the app uses the Material icons font.
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