create static method

Future<CGRect> create(
  1. double x,
  2. double y,
  3. double width,
  4. double height,
)

Implementation

static Future<CGRect> create(
  double x,
  double y,
  double width,
  double height,
) async {
  final result = await kMethodChannel.invokeMethod<Ref>('CGRect::create', {
    'x': x,
    'y': y,
    'width': width,
    'height': height,
  });
  return CGRect()..refId = result?.refId;
}