ArrowIntervalValue.monthDayNano constructor

ArrowIntervalValue.monthDayNano(
  1. int months,
  2. int days,
  3. Object nanoseconds
)

Implementation

ArrowIntervalValue.monthDayNano(this.months, this.days, Object nanoseconds)
  : unit = ArrowIntervalUnit.monthDayNano,
    milliseconds = 0,
    nanoseconds = _bigInt(nanoseconds) {
  _checkInt32(months, 'months');
  _checkInt32(days, 'days');
  if (this.nanoseconds < -(BigInt.one << 63) ||
      this.nanoseconds >= BigInt.one << 63) {
    throw RangeError('nanoseconds does not fit int64');
  }
}