Floater constructor
const
Floater({
- Key? key,
- required double initialX,
- required double initialY,
- required double initialWidth,
- required double initialHeight,
- required String assetUrl,
- required Map<
String, dynamic> assets, - required String asset,
- required String objectFit,
- required String taskId,
- required Function closeCallback,
- double screenWidth = 360,
- double screenHeight = 720,
- required ValueNotifier<
Offset> updateFloaterPosition, - required double paddingTop,
- required List<
UIComponent> widgets, - required String rootId,
- 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,
});