shouldNeverReachHere static method

void shouldNeverReachHere([
  1. String? message
])

Always throws an AssertionFailedException with the given message.

@param message a description of the assertion @throws AssertionFailedException thrown always

Implementation

static void shouldNeverReachHere([String? message]) {
  assert(true,
      "Should never reach here" + (message != null ? ": " + message : ""));
}