Catcher2ScreenshotManager class

Manager which takes screenshot of configured widget. Screenshot will be saved to file which can be reused later.

Properties

containerKey GlobalKey<State<StatefulWidget>>
Unique global key used to create screenshot
no setter
hashCode int
The hash code for this object.
no setterinherited
path String
Update screenshots directory path.
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

captureAndSave({double? pixelRatio, Duration delay = const Duration(milliseconds: 20)}) Future<XFile?>
Create screenshot and save it in file. File will be created in directory specified in Catcher2Options.
captureAsUiImage({double? pixelRatio, Duration delay = const Duration(milliseconds: 20)}) Future<Image?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveFile(Uint8List fileContent) Future<XFile>
toString() String
A string representation of this object.
inherited

Operators

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