Answers for "flutter get initials from name"

0

flutter get initials from name

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 "flutter get initials from name"

Browse Popular Code Answers by Language