INNER CODE UNIT · Dart
CatcherScreenshotManager
jhomlala/catcher · lib/core/catcher_screenshot_manager.dart:13
class CatcherScreenshotManager {
final CatcherLogger _logger;
late GlobalKey _containerKey;
String? _path;
CatcherScreenshotManager(this._logger) {
_containerKey = GlobalKey();
}
///Unique global key used to create screenshot
GlobalKey get containerKey => _containerKey;
///Create screenshot and save it in file. File will be created in directory
///specified in CatcherOptions.
Future<File?> captureAndSave({
double? pixelRatio,
Duration delay = const Duration(milliseconds: 20),
}) async {