How to get the last n-characters in a string in Dart? March 25, 2023 by Tarik var newString = string.substring(string.length - 5);