Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #flutter #initials
ADD COMMENT
Topic
Name
8+5 =