whithClasses method

List<E> whithClasses(
  1. List<String> classes
)

Filter elements with all classes.

Implementation

List<E> whithClasses(List<String> classes) {
  classes = classes.map((e) => e.trim()).where((e) => e.isNotEmpty).toList();
  if (classes.isEmpty) return <E>[];
  return where((e) => e.classes.containsAll(classes)).toList();
}