and method

SignalFilter<T> and(
  1. SignalFilter<T> other
)

Combines this filter with other using logical AND.

Implementation

SignalFilter<T> and(SignalFilter<T> other) => SignalFilter<T>._(
  (payload, context) =>
      matches(payload, context) && other.matches(payload, context),
);