create static method

Future<CGPoint> create(
  1. double x,
  2. double y
)

Implementation

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