SentryOptions constructor

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

Implementation

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