Skip to content

Commit

Permalink
Export timeline.takeScreenshotSync()
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Nov 6, 2024
1 parent d44c3e1 commit b5886cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/spot.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export 'package:spot/src/screenshot/screenshot.dart'
Screenshot,
SelectorScreenshotExtension,
SnapshotScreenshotExtension,
TimelineSyncScreenshot,
takeScreenshot;
export 'package:spot/src/spot/default_selectors.dart'
show DefaultWidgetMatchers, DefaultWidgetSelectors;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/screenshot/screenshot.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Future<Screenshot> takeScreenshot({
}

/// Allows taking screenshot synchronously for the [timeline]
extension SyncScreenshot on Timeline {
extension TimelineSyncScreenshot on Timeline {
/// Takes a screenshot of the entire screen or a single widget.
/// This method returns synchronously but does not actually write the image to disk until the test has completed.
///
Expand Down

0 comments on commit b5886cf

Please sign in to comment.