screenshot method
Takes a screenshot of a widget.
Implementation
Future<Response> screenshot(
String isolateId, String id, double width, double height,
{double? margin, double? maxPixelRatio, bool? debugPaint}) async {
return await vmService.callServiceExtension(
'ext.flutter.inspector.screenshot',
isolateId: isolateId,
args: {
'id': id,
'width': width.toString(),
'height': height.toString(),
'margin': margin?.toString(),
'maxPixelRatio': maxPixelRatio?.toString(),
'debugPaint': debugPaint?.toString(),
},
);
}