Pubspec constructor

Pubspec({
  1. String? currentDirPath,
})

Implementation

Pubspec({String? currentDirPath})
  : filePath = path.join(currentDirPath ?? Directory.current.path, pubspecFileName);