How to get the last n-characters in a string in Dart?

var newString = string.substring(string.length - 5);

Leave a Comment