asFailed method Null safety

FailedResult asFailed()

Implementation

FailedResult asFailed() => this as FailedResult;