Answers for "get initials from name flutter on text"

0

get initials from name flutter on text

String x = "Stephen Ricard";
String[] nameparts = x.split(" ");
String initials = nameparts[0].charAt(0).toUpperCase()+nameparts[1].charAt(0).toUpperCase(); //Output: SR
Posted by: Guest on April-12-2021

Code answers related to "get initials from name flutter on text"

Browse Popular Code Answers by Language