ScreenshotCallback class

Constructors

ScreenshotCallback({bool? requestPermissions})

Properties

hashCode int
The hash code for this object.
no setterinherited
onCallbacks List<VoidCallback>
Functions to execute when callback fired.
getter/setter pair
requestPermissions bool?
If true, the user will be asked to grant storage permissions when callback is added.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenshotController → ScreenshotController
final

Methods

addListener(VoidCallback callback) → void
Add void callback.
addListenerCapture(VoidCallback callback, {double? pixelRatio, Duration delay = const Duration(milliseconds: 20)}) Future<Uint8List?>
checkPermission() Future<void>
Checks if user has granted permissions for storage.
dispose() Future<void>
Remove callback listener.
initialize() Future<void>
Initializes screenshot callback plugin.
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