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
@pragma("vm:prefer-inline")
S expect(String message) {
  return ok;
}