SScreenshot class

Constructors

SScreenshot()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

capture(GlobalKey<State<StatefulWidget>> key, {ScreenshotConfig config = const ScreenshotConfig()}) Future
Captures a widget screenshot using the provided key.
captureAndDownload(GlobalKey<State<StatefulWidget>> key, {String? fileName, double pixelRatio = 3.0, Duration? captureDelay, bool shouldShowDebugLogs = false, Future<void> fileSaverCallback(List<int>, String)?, Future<File> pathProviderCallback(List<int>, String)?}) Future
Captures and downloads a screenshot in one step.
downloadScreenshot(List<int> bytes, {required String fileName, Future<void> fileSaverCallback(List<int>, String)?, Future<File> pathProviderCallback(List<int>, String)?}) Future
Downloads a screenshot file cross-platform.