substring(): allows you to pick a specific part or data at the start or end of a string. Ex: String firstEntry='Mike'; firstEntry.substring(1); // Takes first letter at the start of the variable and gives 'ike' firstEntry.substring(1,2); // Takes first letter at the start and last 2 at the end of the string and gives 'i'var string = 'dartlang'; string.substring(1); // 'artlang' string.substring(1, 4); // 'art'void main() { String str1 = "Hello World"; print("New String: ${str1.substring(6)}"); // from index 6 to the last index print("New String: ${str1.substring(2,6)}"); // from index 2 to the 6th index } // To remove or add anything at the end or to the start of the stringvoid main() { const str = "the quick brown fox jumps over the lazy dog"; const start = "quick"; const end = "over"; final startIndex = str.indexOf(start); final endIndex = str.indexOf(end, startIndex + start.length); print(str.substring(startIndex + start.length, endIndex)); // brown fox jumps }