asValue property Null safety

ValueResult<T> asValue
override

If this is a value result, returns itself.

Otherwise returns null.

Implementation

@override
ValueResult<T> get asValue => this;