Returns the length of the list if it is a success, or length
length
int lengthOr(int length) => switch (this) { Success(:final value) => value.length, _ => length };