isPalindrome property

bool get isPalindrome

检查是否为回文

Implementation

bool get isPalindrome {
  final cleaned = toLowerCase().removeWhitespace;
  return cleaned == cleaned.reversed;
}