expect method

  1. @override
S expect(
  1. String message
)
override

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

Implementation

@override
S expect(String message) {
  throw Panic("Called `expect` on an `$runtimeType` of `$err`. $message");
}