animateWindowSize method

  1. @override
Future<void> animateWindowSize(
  1. double width,
  2. double height, {
  3. double radius = 10,
  4. double duration = 0.5,
})
override

Animates the window size.

  • width: The target width.
  • height: The target height.
  • radius: The target radius.
  • duration: Animation duration in seconds.

Implementation

@override
Future<void> animateWindowSize(double width, double height, {double radius = 10, double duration = 0.5}) async {
  await methodChannel.invokeMethod<void>('animateWindow', {
    'width': width,
    'height': height,
    'radius': radius,
    'duration': duration,
  });
}