check function

void check(
  1. bool value
)

assert will be removed in production

these should not happen even with malformed manifest. this is only for checking internal code flow and logic.

Implementation

void check(final bool value) {
  if (!value) throw InternalSealedError('check failed');
}