“Списки Concat Flutter” Ответ

Списки Concat Flutter

var newList = [list1, list2, list3].expand((x) => x).toList()
As of Dart 2 you can now use +:

var newList = list1 + list2 + list3;
As of Dart 2.3 you can use the spread operator:

var newList = [...list1, ...list2, ...list3];
Brave Booby

Списки Concat Flutter

var newList = [list1, list2, list3].expand((x) => x).toList()
As of Dart 2 you can now use +:

var newList = list1 + list2 + list3;
As of Dart 2.3 you can use the spread operator:

var newList = [...list1, ...list2, ...list3];
Brave Booby

Ответы похожие на “Списки Concat Flutter”

Вопросы похожие на “Списки Concat Flutter”

Больше похожих ответов на “Списки Concat Flutter” по Dart

Смотреть популярные ответы по языку

Смотреть другие языки программирования