Returns the error if the status is LxError, otherwise null.
null
Object? get errorOrNull => switch (this) { LxError<T>(:final error) => error, _ => null, };