Skip to content

Commit 39b6a2f

Browse files
docs: add example to setReproStepsConfig
1 parent 3b0c045 commit 39b6a2f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/src/modules/instabug.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,18 @@ class Instabug {
399399
}
400400

401401
/// Sets the repro steps mode for bugs and crashes.
402+
///
402403
/// [bug] repro steps mode for bug reports.
403404
/// [crash] repro steps mode for crash reports.
404405
/// [all] repro steps mode for both bug and crash reports, when present it
405406
/// overrides [bug] and [crash].
407+
///
408+
/// Example:
409+
/// ```dart
410+
/// Instabug.setReproStepsConfig(
411+
/// bug: ReproStepsMode.enabledWithNoScreenshots,
412+
/// crash: ReproStepsMode.enabled,
413+
/// );
406414
static Future<void> setReproStepsConfig({
407415
ReproStepsMode? bug,
408416
ReproStepsMode? crash,

0 commit comments

Comments
 (0)