getVsList method

List<String> getVsList()

use returnedValue.getVsList() to obtain other currency names available in list

Implementation

List<String> getVsList() {
  var t = rates.map((e) => (e.name != "-1") ? e.name : "").toList();
  t.retainWhere((element) => element.isNotEmpty);
  return t;
}