How to get first letter of string in flutter dart?
To get first character of string you should use method substring Example:
word.substring(0,1);
You can do this by getting the first element of the String (indicated by index 0):
'${mystring[0]}'
example:
String mystring = 'Hello World';
print('${mystring[0]}');
in this case you will get as an output:
H