getStrings method

Future<List<String>> getStrings({
  1. required List<Result> fromResults,
})

Returns the value of where for each result's element in order to return a list of strings instead of results.

Implementation

Future<List<String>> getStrings({required List<Result> fromResults}) async {
  return fromResults.unwrap().map((e) => e[where].toString()).toSet().toList();
}