setWindowSize method

  1. @override
Future<void> setWindowSize(
  1. String windowId,
  2. int width,
  3. int height
)
override

Implementation

@override
Future<void> setWindowSize(String windowId, int width, int height) {
  // Idem : sans .toDouble(), width/height arrivent à 0 côté natif ->
  // "gtk_window_resize: assertion 'width > 0' failed".
  return methodChannel.invokeMethod('setWindowSize', {
    'windowId': windowId,
    'width': width.toDouble(),
    'height': height.toDouble(),
  });
}