createWithPoint static method

Future<CGPoint> createWithPoint(
  1. Point<num> point
)

Implementation

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