Hi, I was wondering there was a built-in type representing an empty value.
For example, in Dartz they have the Unit type.
I'm quite a fan of Rust and I find this approach of handling errors more elegant than Dartz one but on the other hand, having a built-in type for empty values is quite nice too instead of returning null.
Hi, I was wondering there was a built-in type representing an empty value. For example, in Dartz they have the
Unit
type.I'm quite a fan of Rust and I find this approach of handling errors more elegant than Dartz one but on the other hand, having a built-in type for empty values is quite nice too instead of returning
null
.tl,dr: Is there a built-in type for empty values?