expectErr method

  1. @override
F expectErr(
  1. String message
)
override

Returns the err value if Result is Err. Throws a Panic if the Result is Ok, with the provided message.

Implementation

@override
@pragma("vm:prefer-inline")
F expectErr(String message) {
  throw Panic("Called `expectErr` on an `$runtimeType` of `$ok`. $message");
}