Skip to content

Commit

Permalink
docs: include SentryFlutter.init documentation (#2093)
Browse files Browse the repository at this point in the history
Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>
  • Loading branch information
alestiago and buenaflor authored Jun 19, 2024
1 parent 5c83e42 commit 82369c9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions flutter/lib/src/sentry_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ mixin SentryFlutter {
// ignore: invalid_use_of_internal_member
static DateTime? sentrySetupStartTime;

/// Initializes the Sentry Flutter SDK.
///
/// Unlike [Sentry.init], this method creates the Flutter default integrations.
///
/// [optionsConfiguration] is a callback that allows you to configure the Sentry
/// options. The [SentryFlutterOptions] should not be adjusted anywhere else than
/// during [init], so that's why they're not directly exposed outside of this method.
///
/// You can use the static members of [Sentry] from within other packages without the
/// need of initializing it in the package; as long as they have been already properly
/// initialized in the application package.
static Future<void> init(
FlutterOptionsConfiguration optionsConfiguration, {
AppRunner? appRunner,
Expand Down

0 comments on commit 82369c9

Please sign in to comment.