getExternalRects static method

String getExternalRects(
  1. Rect nativeWindowRect,
  2. Rect webViewRect
)

Implementation

static String getExternalRects(Rect nativeWindowRect, Rect webViewRect){
  Map <String,dynamic> nativeWindowRectStr = _createStrRects(nativeWindowRect);
  Map <String,dynamic> webViewRectStr = _createStrRects(webViewRect);

  Map <String,dynamic> rects = new Map <String,dynamic>();
  rects["webViewRect"] = webViewRectStr;
  rects["nativeWindowRect"] = nativeWindowRectStr;
  return json.encode(rects);
}