Description class

Describes the pubspec 'description' key and allows you to manage the contents of the description key

pubspec.description.set('This is my new package');
Implemented types

Properties

comments Comments
List of comments associated (prepended) with this section
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
lines List<Line>
returns the list of lines associated with this section including any comments immediately above the section. Comments may include blank lines and we return all lines upto the end of the prior segment.
no setteroverride
missing bool
Indicates that this section does not exist in the pubspec.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
Returns the content of the description which could include newlines.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(String value) → void
Replace the existing string. value may contain newlines in which case we will write out a multi-line yaml scalar string.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

keyName → const String