How to get Distinct List

I found online soluton like this:

import 'package:queries/collections.dart';

void main() {
  List<String> list = ["abc", "ab", "bd", "csdf", "bs", "dsdf"];
  var result = new Collection(list).distinct();
  print(result.toList());
}

But, I don’t know how to convert var result back to List<Widget>