the value to return in case the Nullable is null.
The value held internally by this Nullable.
enum E { a = "a", b = "b" } Nullable!E f = E.a; auto e = f.get(); static assert(is(typeof(e) == E), Nullable!E.AllowedTypes.stringof); assert(e == E.a); assert(f.get(E.b) == E.a); f = null; assert(f.get(E.b) == E.b);
Gets the value if not null. If this is in the null state, and the optional parameter fallback was provided, it will be returned. Without fallback, calling get with a null state is invalid.
When the fallback type is different from the Nullable type, get(T) returns the common type.