SentryAssetBundle constructor

SentryAssetBundle({
  1. Hub? hub,
  2. AssetBundle? bundle,
  3. bool enableStructuredDataTracing = true,
})

Implementation

SentryAssetBundle({
  Hub? hub,
  AssetBundle? bundle,
  bool enableStructuredDataTracing = true,
})  : _hub = hub ?? HubAdapter(),
      _bundle = bundle ?? rootBundle,
      _enableStructuredDataTracing = enableStructuredDataTracing {
  // ignore: invalid_use_of_internal_member
  _hub.options.sdk.addIntegration('AssetBundleTracing');
  if (_enableStructuredDataTracing) {
    // ignore: invalid_use_of_internal_member
    _hub.options.sdk.addIntegration('StructuredDataTracing');
  }
}