isPalindrome static method

bool isPalindrome(
  1. String value
)

Checks if the value is a palindrome.

Implementation

static bool isPalindrome(String value) =>
    value == value.split('').reversed.join();