name property

String? get name

Returns the name field from the pubspec.yaml

Implementation

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

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

Implementation

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