asSuccess property

T get asSuccess

Implementation

T get asSuccess =>
    isSuccess ? result as T : throw ResultExceptions.notSuccessException;