shouldNotMatch method

void shouldNotMatch(
  1. dynamic regExp
)

Asserts that the value does not match the regular expression
given by regExp. regExp can be a RegExp instance or a String.

Implementation

void shouldNotMatch(dynamic regExp) {
  expect(
    this,
    isNot(matches(regExp)),
    reason: 'Expected $this to not to match $regExp',
  );
}