setAppStartEnd static method

  1. @Deprecated('Will be removed in v9. This functionality will not be supported anymore.')
void setAppStartEnd(
  1. DateTime appStartEnd
)

Manually set when your app finished startup. Make sure to set SentryFlutterOptions.autoAppStart to false on init. The timeout duration for this to work is 10 seconds.

Implementation

@Deprecated(
    'Will be removed in v9. This functionality will not be supported anymore.')
static void setAppStartEnd(DateTime appStartEnd) {
  // ignore: invalid_use_of_internal_member
  final integrations = Sentry.currentHub.options.integrations
      .whereType<NativeAppStartIntegration>();
  for (final integration in integrations) {
    integration.appStartEnd = appStartEnd;
  }
}