setSize method

Future<void> setSize(
  1. Size size
)

A no-op on a virtual window, logged rather than vanishing.

Implementation

Future<void> setSize(Size size) async {
  if (isVirtual) {
    await _logIgnored('setSize');
    return;
  }
  await DVNativeBridge.require<bool>('window.setSize', <String, Object?>{
    'id': nativeId,
    'width': size.width,
    'height': size.height,
  });
}