data property

  1. @override
Map<String, dynamic> get data
override

Implementation

@override
Map<String, dynamic> get data => {
      'actionType': actionType,
      'targetWidget': targetWidget,
      'position': position != null
          ? {
              'x': position!.dx,
              'y': position!.dy,
            }
          : null,
      'route': route,
      'widgetInfo': widgetInfo,
      if (screenshot != null) 'screenshot': screenshot,
      if (screenWidth != null) 'screenWidth': screenWidth,
      if (screenHeight != null) 'screenHeight': screenHeight,
    };