CreateFileReferences constructor

CreateFileReferences(
  1. CreateFileReferencesHelper _helper,
  2. String _sourceDirectory,
  3. 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();