SdkVersion constructor

SdkVersion({
  1. required String name,
  2. required String version,
  3. List<String>? integrations,
  4. List<SentryPackage>? packages,
  5. Map<String, dynamic>? unknown,
})

Creates an SdkVersion object which represents the SDK that created an Event.

Implementation

SdkVersion({
  required this.name,
  required this.version,
  List<String>? integrations,
  List<SentryPackage>? packages,
  this.unknown,
})  :
      // List.from prevents from having immutable lists
      _integrations = List.from(integrations ?? []),
      _packages = List.from(packages ?? []);