lengthDistance method

int lengthDistance(
  1. Term other
)

Returns the absolute value of the difference in length between two terms.

The String and other are trimmed for the calculation.

Implementation

int lengthDistance(Term other) => (trim().length - other.trim().length).abs();