LiteralStringRule constructor

LiteralStringRule({
  1. DateTime now()?,
})

now exists so tests can advance the clock the negative cache uses, rather than sleeping past its TTL.

Implementation

LiteralStringRule({DateTime Function()? now})
  : _now = now ?? DateTime.now,
    super(name: 'literal_string', description: 'Finds literal strings');