checkParamsGetRangeArray function

void checkParamsGetRangeArray(
  1. Array? y,
  2. Array? x,
  3. int dx
)

Implementation

void checkParamsGetRangeArray(Array? y, Array? x, int dx) {
  if (x != null && x.length != y?.length) {
    throw FormatException('both array need have the same length');
  }
  if (dx <= 0) {
    throw FormatException('dx need be greater then 0');
  }
}