errorOrNull property

Object? get errorOrNull

Returns the error if isError, otherwise null.

Implementation

Object? get errorOrNull => this is ErrorStatus<T, Object>
    ? (this as ErrorStatus<T, Object>).error
    : null;