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