addListenerCapture method

Future<Uint8List?> addListenerCapture(
  1. VoidCallback callback, {
  2. double? pixelRatio,
  3. Duration delay = const Duration(milliseconds: 20),
})

Implementation

Future<Uint8List?> addListenerCapture(
  VoidCallback callback, {
  double? pixelRatio,
  Duration delay = const Duration(milliseconds: 20),
}) {
  onCallbacks.add(callback);
  return screenshotController.capture(pixelRatio: pixelRatio, delay: delay);
}