Dart equivalent to Python zip and list comprehension for generating list of widgets from two lists
Dart equivalent to Python zip and list comprehension for generating list of widgets from two lists Question: I want to create a list of widgets MyWidget(categoryName, color) from the following two lists. static const _categoryNames = <String>[ ‘Length’, ‘Area’, ‘Volume’, ]; static const _baseColors = <Color>[ Colors.teal, Colors.orange, Colors.pinkAccent, ]; In Python I would use …
Total answers: 4