how to get the last letter of a string in dart code example Example: how to get the last values of a string dart var newString = string.substring(string.length - 5);