toggleCase property
String
get
toggleCase
Toggles the case of each character in the string.
Implementation
String get toggleCase => split('').map((char) {
return char == char.toUpperCase()
? char.toLowerCase()
: char.toUpperCase();
}).join('');