isPalindrome method

bool isPalindrome()

Implementation

bool isPalindrome() {
  final trimmed = isremoveAllWhitespace().toLowerCase();
  return trimmed == trimmed.split('').reversed.join('');
}