Filter function to decide if a frame should be ignored.
typedef FrameFilter = bool Function(String frame);