create 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 refId = await kMethodChannel.invokeMethod('CGRect::create', {
    'x': x,
    'y': y,
    'width': width,
    'height': height,
  });
  return CGRect()..refId = refId;
}