hasTrailingWhitespace property
Returns true if the text (up to this container) has trailing whitespace.
Implementation
bool get hasTrailingWhitespace {
  final tail = last ?? prev;
  if (tail == null) return true;
  return tail is _TextWhitespace;
}