getAllWidgetDetails method

List<Map<String, dynamic>> getAllWidgetDetails(
  1. GlobalKey<State<StatefulWidget>> key,
  2. BuildContext context,
  3. num xFactor,
  4. num yFactor,
)

Implementation

List<Map<String, dynamic>> getAllWidgetDetails(
  GlobalKey key,
  BuildContext context,
  num xFactor,
  num yFactor,
) {
  print("screenShot started 3");
  Map<String, dynamic> widgetDetails = {};
  widgetDetails.addAll(WidgetDetailsService.getWidgetDetails());
  extractDetails(
    key.currentContext ?? context,
    widgetDetails,
    xFactor,
    yFactor,
  );

  return List<Map<String, dynamic>>.from(widgetDetails.values.toList());
}