enableBreadcrumbTrackingForCurrentPlatform method

void enableBreadcrumbTrackingForCurrentPlatform()

Automatically set sensible defaults for tracking Breadcrumbs. It considers the current platform and available native integrations.

For platforms which have a native integration available this uses the native integration. On all other platforms it tracks events which are available in the Flutter environment. This way you get more detailed information where available.

Implementation

void enableBreadcrumbTrackingForCurrentPlatform() {
  if (platformChecker.hasNativeIntegration) {
    useNativeBreadcrumbTracking();
  } else {
    useFlutterBreadcrumbTracking();
  }
}