Floater constructor

const Floater({
  1. Key? key,
  2. required double initialX,
  3. required double initialY,
  4. required double initialWidth,
  5. required double initialHeight,
  6. required String assetUrl,
  7. required Map<String, dynamic> assets,
  8. required String asset,
  9. required String objectFit,
  10. required String taskId,
  11. required Function closeCallback,
  12. double screenWidth = 360,
  13. double screenHeight = 720,
  14. required ValueNotifier<Offset> updateFloaterPosition,
  15. required double paddingTop,
  16. required List<UIComponent> widgets,
  17. required String rootId,
  18. required ValueNotifier<bool> isFullPageNotifier,
})

Implementation

const Floater({
  super.key,
  required this.initialX,
  required this.initialY,
  required this.initialWidth,
  required this.initialHeight,
  required this.assetUrl,
  required this.assets,
  required this.asset,
  required this.objectFit,
  required this.taskId,
  required this.closeCallback,
  this.screenWidth = 360,
  this.screenHeight = 720,
  required this.updateFloaterPosition,
  required this.paddingTop,
  required this.widgets,
  required this.rootId,
  required this.isFullPageNotifier,
});