setAspectRatio method

Future<void> setAspectRatio(
  1. double aspectRatio
)

This will make a window maintain an aspect ratio.

Implementation

Future<void> setAspectRatio(double aspectRatio) async {
  final Map<String, dynamic> arguments = {
    'aspectRatio': aspectRatio,
  };
  await _channel.invokeMethod('setAspectRatio', arguments);
}