findRadarCoord method

RadarLayout findRadarCoord([
  1. int radarIndex = 0
])

Implementation

RadarLayout findRadarCoord([int radarIndex = 0]) {
  if (radarIndex > config.radarList.length) {
    radarIndex = 0;
  }
  if (config.radarList.isEmpty) {
    throw FlutterError('暂无Radar坐标系');
  }

  return _findCoordInner(config.radarList[radarIndex]) as RadarLayout;
}