name property

String? name

Returns the name field from the pubspec.yaml

Implementation

String? get name => pubspec.name;
void name=(String? name)

updates the pubspec.yaml 'name' key. You must call saveToFile.

Implementation

set name(String? name) => pubspec = pubspec.copy(name: name);