setPosition method

Future<bool> setPosition(
  1. double x,
  2. double y
)

Sets the position of the floating panel.

x and y are required parameters in points from the bottom-left corner. Returns true if the position was set successfully.

Implementation

Future<bool> setPosition(double x, double y) {
  return FloatingPanelPlatform.instance.setPosition(x, y);
}