errorOrNull method
Returns the error if this is a Result.error or null
otherwise.
Implementation
BaseError? errorOrNull() => fold((error) => error, (_) => null);
Returns the error if this is a Result.error or null
otherwise.
BaseError? errorOrNull() => fold((error) => error, (_) => null);