getOrDefault method
Returns the encapsulated value if this instance represents
Success
or the defaultValue
if it is Failure
.
Implementation
@override
S getOrDefault(S defaultValue) => defaultValue;
Returns the encapsulated value if this instance represents
Success
or the defaultValue
if it is Failure
.
@override
S getOrDefault(S defaultValue) => defaultValue;