createCGPoint function

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

Implementation

Future<CGPoint> createCGPoint(double x, double y) async {
  final refId = await kMethodChannel
      .invokeMethod('PlatformFactory::createCGPoint', {'x': x, 'y': y});
  return CGPoint()
    ..refId = refId
    ..tag = 'platform';
}