asError property Null safety

ErrorResult? asError

If this is an error result, returns itself.

Otherwise returns null.

Implementation

ErrorResult? get asError;