asSuccess property
Success<ResultType>
get
asSuccess
Cast this
into a Success, and throw an exception if the cast fails!
It might be tempting to just cast the result into the desired type, but it's
strongly advised to not do that
. Although, it might be convenient to have
this cast sometimes. Use it wisely!
Implementation
Success<ResultType> get asSuccess => this as Success<ResultType>;