hasTrailingWhitespace property

bool hasTrailingWhitespace

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;
}