Returns the err value if Result is Err. Throws a Panic if the Result is Ok, with the provided message.
message
@override @pragma("vm:prefer-inline") F expectErr(String message) { return err; }