Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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'];
 
PREVIOUS NEXT
Tagged: #flutter #array #strings
ADD COMMENT
Topic
Name
6+2 =