panic method

T panic(
  1. bool predicate(
    1. T it
    )
)

Implementation

T panic(bool Function(T it) predicate) {
  if (this == null) {
    throw NullException();
  }
  if (!predicate(this)) {
    throw Panic();
  }
  return this;
}