Skip to content

Instantly share code, notes, and snippets.

Created October 16, 2020 18:06
What would you like to do?
Palindrome checker
///A palindrome checker
bool checkPalindrome(String str) {
return str == reverseStr(str);
///A string reverser
String reverseStr(String str) {
return str.split('').reversed.join();
void main() {
String str = 'madam';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment