setSize method

Future<void> setSize(
  1. Size size, {
  2. bool animate = false,
})

Resizes the window to width and height.

Implementation

Future<void> setSize(Size size, {bool animate = false}) async {
  await setBounds(
    null,
    size: size,
    animate: animate,
  );
}