Answers for "flutter array of strings"

1

flutter array of strings

//List of integers
List<int> intArr = [1,2,3,4,5];
print(intArr);
  
//List of strings
List<String> strArr = ['hello', 'world'];
print(strArr);  
  
// When use as Paramitter Default Value
List<String> strArr = const ['hello', 'world'];
Posted by: Guest on November-23-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language