addPackage method

void addPackage(
  1. String name,
  2. String version
)

Adds a package

Implementation

void addPackage(String name, String version) {
  for (final item in _packages) {
    if (item.name == name && item.version == version) {
      return;
    }
  }

  final package = SentryPackage(name, version);
  _packages.add(package);
}