findCalendarCoord method

CalendarLayout findCalendarCoord([
  1. int calendarIndex = 0
])

Implementation

CalendarLayout findCalendarCoord([int calendarIndex = 0]) {
  int index = calendarIndex;
  if (index > config.calendarList.length) {
    index = 0;
  }
  if (config.calendarList.isEmpty) {
    throw FlutterError('当前未配置Calendar 坐标系无法查找');
  }
  Calendar calendar = config.calendarList[index];
  return _findCoordInner(calendar) as CalendarLayout;
}