A value wrapped in Some can be assigned to an OptionalNullable to convey the value should be used instead of a default.
Inheritance
- Object
- OptionalNullable<T>
- Some
Constructors
Some (T value)
const
Properties
hashCode → int
The hash code for this object.
read-only, inherited
isDefined → bool
True if the value is Some or None.
read-only, inherited
isUndefined → bool
True if the value is not Some or None.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
Methods
noSuchMethod(Invocation invocation) dynamic
Invoked when a non-existent method or property is accessed.
inherited
or(T fallback) T
If the value is Some, the value is returned. If None, null
is
returned. Otherwise, the value isUndefined
, in which case the given
fallback
value is returned instead.
inherited
toString() String
A string representation of this object.
inherited
Operators
operator ==(Object other) bool
The equality operator.
inherited