getOverlayPosition method

  1. @override
Future<Map<String, dynamic>> getOverlayPosition()
override

Get current floating window position

Implementation

@override
Future<Map<String, dynamic>> getOverlayPosition() async {
  final result = await methodChannel.invokeMapMethod<String, dynamic>(
    Constants.getOverlayPosition,
  );
  return result ?? {'x': 0, 'y': 0};
}