byError implementation
accepts errors matched using predicate
const factory LogFilter.byError( bool Function(Object? error) predicate, ) = LogFilterByErrorImpl;