expect method

Never expect(
  1. String msg
)

Implementation

@pragma("vm:prefer-inline")
Infallible expect(String msg) {
  throw Panic("Called `expect` on a value that was `None`. $msg");
}