isPunctuation method

bool isPunctuation()

smaller (~30%) in height artifacts will be considered punctuation

Implementation

bool isPunctuation() {
  // Calculate the height of the content
  final Size size = _getContentSize();

  // If there's no content, it's not punctuation
  if (size == Size.zero) {
    return false;
  }

  // Check if the content height is less than 40% of the total height
  return size.height < (rows * 0.40);
}