getSource static method

Iterable<MapEntry<String, dynamic>> getSource(
  1. bool descending,
  2. Map<String, dynamic> sources,
  3. Map<String, String> sourceUrls
)

Implementation

static Iterable<MapEntry<String, dynamic>> getSource(bool descending, Map<String, dynamic> sources, Map<String, String> sourceUrls) {
  Map<String, dynamic> tmp = sources;
  if (kIsWeb) {
    tmp = sourceUrls;
  }
  return descending ? tmp.entries.toList().reversed : tmp.entries;
}