groupingIsNotASpaceOrElseItIsSpaceFollowedByADigit property

bool groupingIsNotASpaceOrElseItIsSpaceFollowedByADigit

Determine if a space is a valid character in the number. See handleSpace.

Implementation

bool get groupingIsNotASpaceOrElseItIsSpaceFollowedByADigit {
  if (symbols.GROUP_SEP != '\u00a0' || symbols.GROUP_SEP != ' ') return true;
  var peeked = input.peek(symbols.GROUP_SEP.length + 1);
  return asDigit(peeked[peeked.length - 1]) != null;
}