CreateFileReferences constructor
CreateFileReferences(
- CreateFileReferencesHelper _helper,
- String _sourceDirectory,
- Config _config
Implementation
CreateFileReferences(this._helper, this._sourceDirectory, this._config)
: _packageName = _config.packageName ??
File('pubspec.yaml')
.readAsLinesSync()
.firstWhere((line) => line.startsWith('name:'))
.split(':')
.last
.trim();