Say I want to convert following collection to List<int>,
final listDouble = <double>[1.0, 2.0];
I can either use
final listInt = List<int>.from(listDouble);
or
final listInt = listDouble.map<int>((e) => e.toInt()).toList();
Is there any difference between two approaches?