getBounds method

Future<Map> getBounds(
  1. MethodCall call
)

Implementation

Future<Map<dynamic, dynamic>> getBounds(MethodCall call) {
  num x = 0;
  num y = 0;
  num width = 0;
  num height = 0;

  js.JsObject bounds = js.context.callMethod(
    'windowManagerPluginGetBounds',
    [],
  );

  x = bounds['x'];
  y = bounds['y'];
  width = bounds['width'];
  height = bounds['height'];

  return Future<Map<dynamic, dynamic>>.value({
    'x': x,
    'y': y,
    'width': width,
    'height': height,
  });
}