writeToPubspec method

Future<void> writeToPubspec(
  1. String contents
)

Implementation

Future<void> writeToPubspec(String contents) async {
  await pubspec().writeAsString(contents);
}