fromNative static method

GRect fromNative(
  1. Rect nativeRect
)

Creates a new GRect object based on the Rect counterpart.

Implementation

static GRect fromNative(Rect nativeRect) {
  return GRect(
      nativeRect.left, nativeRect.top, nativeRect.width, nativeRect.height);
}