count property

int get count

Calculates the number of PhoneNumbers in the range (inclusive of start and end) where 'this' is the start of the range and endOfRange is the end of the range.

Implementation

int get count {
  var first = BigInt.parse(start.international);
  var last = BigInt.parse(end.international);

  var bigInterval = last - first;

  var interval = bigInterval.abs().toInt() + 1;

  return interval;
}