unreachable function

Never unreachable([
  1. String msg = "This code should be unreachable."
])

Shorthand for

throw Unreachable(...)

Implementation

@pragma("vm:prefer-inline")
Never unreachable([String msg = "This code should be unreachable."]) {
  throw Unreachable(msg);
}