check abstract method

void check(
  1. dynamic actual,
  2. dynamic matcher, {
  3. String reason,
  4. dynamic skip,
})

Assert that actual matches matcher.

  • actual: The current value
  • matcher: Can be a value in which case it will be wrapped in an equals matcher
  • reason: If provided it is appended to the reason generated by the matcher
  • skip: Is a String or true, the assertion is skipped. The arguments are still evaluated, but actual is not verified to match matcher

Implementation

void check(actual, matcher, {String reason, skip});