captureScreenshots method
Capture the screenshot all decendant ScreenShotWidget.
Implementation
Future<List<Uint8List>> captureScreenshots() async {
if(screenshotControllers == null) return [];
List<Uint8List> images = [];
for(var controller in List.from(screenshotControllers!)) {
images.add(await controller.captureScreenShot!());
}
return images;
}