flutter add to list code example
Example 1: add list fromflutter
ListView(
children: <Widget>[
ListTile(
leading: Icon(Icons.map),
title: Text('Map'),
),
ListTile(
leading: Icon(Icons.photo_album),
title: Text('Album'),
),
ListTile(
leading: Icon(Icons.phone),
title: Text('Phone'),
),
],
);
Example 2: dart add list to list
var newList = [...list1, ...list2].toSet().toList();
hasan