getOrNull method
T?
getOrNull()
Implementation
T? getOrNull() => switch (this) {
Ok(value: final v) => v,
Error() => null,
Cancel() => null,
};
T? getOrNull() => switch (this) {
Ok(value: final v) => v,
Error() => null,
Cancel() => null,
};