Answers for "how to get all first character of all words of a string flutter"

0

how to get first word of a sentence in flutter

static String getFirstWord(String inputString) {
    List<String> wordList = inputString.split(" ");
    if (wordList.isNotEmpty) {
      return wordList[0];
    } else {
      return ' ';
    }
  }
Posted by: Guest on March-31-2021
-2

first caractere in String in dart

String mystring = 'Hello World';

  print('${mystring[0]}');
Posted by: Guest on December-06-2020

Code answers related to "how to get all first character of all words of a string flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language