mentions method

bool mentions(
  1. bool test(
    1. String text
    )
)

Whether test holds for the content or the logger name.

Implementation

bool mentions(bool Function(String text) test) => test(content) || (loggerName != null && test(loggerName!));