create_batch static method

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

Implementation

static Future<List<CGPoint>> create_batch(
  List<double> x,
  List<double> y,
) async {
  final resultBatch = await kMethodChannel
      .invokeListMethod<Ref>('CGPoint::create_batch', {'x': x, 'y': y});
  return [
    for (final item in resultBatch ?? []) CGPoint()..refId = item.refId
  ];
}