setBounds method

Future<bool> setBounds(
  1. MethodCall call
)

Implementation

Future<bool> setBounds(MethodCall call) {
  Map<String, dynamic> args = Map<String, dynamic>.from(call.arguments);
  num? x = args['x'];
  num? y = args['y'];
  num? width = args['width'];
  num? height = args['height'];

  js.context.callMethod(
    'windowManagerPluginSetBounds',
    [
      js.JsObject.jsify({'x': x, 'y': y, 'width': width, 'height': height}),
    ],
  );

  return Future.value(true);
}