SentryOptions constructor

SentryOptions({
  1. String? dsn,
  2. PlatformChecker? checker,
})

Implementation

SentryOptions({String? dsn, PlatformChecker? checker}) {
  this.dsn = dsn;
  if (checker != null) {
    platformChecker = checker;
  }
  sdk = SdkVersion(name: sdkName(platformChecker.isWeb), version: sdkVersion);
  sdk.addPackage('pub:sentry', sdkVersion);
}