findParallelCoord method

ParallelLayout findParallelCoord([
  1. int parallelIndex = 0
])

Implementation

ParallelLayout findParallelCoord([int parallelIndex = 0]) {
  int index = parallelIndex;
  if (index > config.parallelList.length) {
    index = 0;
  }
  if (config.parallelList.isEmpty) {
    throw FlutterError('当前未配置Parallel 坐标系无法查找');
  }
  Parallel parallel = config.parallelList[index];

  CoordinateLayout layout = _findCoordInner(parallel);
  return layout as ParallelLayout;
}