getRawContent method

Map<String, dynamic>? getRawContent()

Gets the raw pubspec content as a map

Implementation

Map<String, dynamic>? getRawContent() {
  if (_pubspecContent == null) {
    throw StateError('Pubspec not loaded. Call load() first.');
  }

  return Map<String, dynamic>.from(_pubspecContent!);
}