updateBounds method

  1. @override
Future<void> updateBounds(
  1. int webviewId,
  2. Offset offset,
  3. Size size,
  4. double devicePixelRatio,
)
override

Implementation

@override
Future<void> updateBounds(
    int webviewId, Offset offset, Size size, double devicePixelRatio) async {
  await methodChannel.invokeMethod<bool>('updateBounds', {
    "webviewId": webviewId,
    "left": (offset.dx * devicePixelRatio).toInt(),
    "top": (offset.dy * devicePixelRatio).toInt(),
    "right": ((offset.dx + size.width) * devicePixelRatio).toInt(),
    "bottom": ((offset.dy + size.height) * devicePixelRatio).toInt(),
  });
}