test method

Result<T> test(
  1. bool testFunction(
    1. Result<T>
    ),
  2. String failedTestMsg
)

Test this result and return Ok or Err.

Implementation

Result<T> test(bool Function(Result<T>) testFunction, String failedTestMsg) =>
    testResult(testFunction, this, failedTestMsg);