multiIntervalsValidation method

void multiIntervalsValidation(
  1. bool validateMultiTickers,
  2. List<Intervals> intervals
)

Implementation

void multiIntervalsValidation(
    bool validateMultiTickers, List<Intervals> intervals) {
  if (validateMultiTickers) {
    if (intervals.isEmpty) {
      throw Exception(
          "You can`t use multi ticker with multi intervals without and interval");
    }
  }
}