updateToolbarPassthroughView static method
Updates the toolbar passthrough view with the specified parameters.
The id
parameter uniquely identifies the passthrough view.
The x
and y
parameters specify the position of the view.
The width
and height
parameters define the size of the view.
The enableDebugLayers
parameter enables visual debugging layers if set
to true. Note that enableDebugLayers
is meant to stay constant during
life lifetime of the app. Changing its state during runtime may lead to
unexpected behavior.
Implementation
static Future<void> updateToolbarPassthroughView({
required String id,
required double x,
required double y,
required double width,
required double height,
required bool enableDebugLayers,
}) async {
await _completer.future;
await _windowManipulatorMethodChannel.invokeMethod(
'updateToolbarPassthroughView',
{
'id': id,
'x': x,
'y': y,
'width': width,
'height': height,
'enableDebugLayers': enableDebugLayers,
},
);
}