# isPalindrome property

bool get isPalindrome

Checks if string is Palindrome.

## Implementation

    bool get isPalindrome {
      String cleanString = toLowerCase()
          .replaceAll(RegExp(r"\s+"), '')
          .replaceAll(RegExp(r"[^0-9a-zA-Z]+"), "");

      for (int i = 0; i < cleanString.length; i++) {
        if (cleanString[i] != cleanString[cleanString.length - i - 1]) {
          return false;
        }
      }

      return true;
    }