UrisToStringPaths method

List<String> UrisToStringPaths(
  1. List<Uri>? uris
)

helper method to convert list of uris to list string paths

Implementation

List<String> UrisToStringPaths(List<Uri>? uris) {
  var list = List<String>.empty(growable: true);
  if (uris != null && uris.isNotEmpty) {
    for (var uriItem in uris) {
      list.add(uriItem.path);
    }
  }
  return list;
}