showOverlay method

  1. @override
Future<void> showOverlay({
  1. int? overlayHeightDp,
})
override

Shows the overlay UI above the keyboard.

Calls the native 'showOverlay' method to display the overlay with the UI implementation specified in registerOverlayUi.

Parameters:

  • overlayHeightDp: Optional parameter to specify the height of the overlay in density-independent pixels. If not provided, the native implementation will use the default height.

Implementation

@override
Future<void> showOverlay({int? overlayHeightDp}) async {
  await methodChannel.invokeMethod('showOverlay');
}