SentryOptions constructor
SentryOptions({
- String? dsn,
- 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);
}