and method

Filter<T> and(
  1. Filter<T> otherFilter
)

Implementation

Filter<T> and(Filter<T> otherFilter) {
  return Filter(
    (el) => filter(el) && otherFilter(el),
    description: '$description AND ${otherFilter.description}',
  );
}