Everyday String Methods
Trim, split, replace, and change case.
Strings Come With Tools
Every Dart string ships with handy methods that transform or inspect text. You call them with a dot after the string.
var s = 'hello';
var n = s.length;Strings Never Change
String methods return a new string and leave the original untouched. Dart strings are immutable, so always use the returned value.
var s = 'hi';
var loud = s.toUpperCase();