None<T> class
None represents the absence of a value in Option.
- Inheritance
- Available extensions
Constructors
- None()
-
Constructs nothing
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNone → bool
-
Returns true if the option is None, false otherwise.
no setterinherited
- isSome → bool
-
Returns true if the option is Some, false otherwise.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bind<
U> (Option< U> f(T)) → Option<U> -
Available on Option<
Returns a new Option from an existing OptionT> , provided by the OptionExtensions extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
someOr(
T orElse()) → T -
Available on Option<
Returns the value if it is some, or the result ofT> , provided by the OptionExtensions extensionorElse
if it is none. -
toNullable(
) → T? -
Available on Option<
Returns the value if it exists, otherwise nullT> , provided by the OptionToNullable extension -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator >>(
Option< T> transform(T)) → Option<T> -
Available on Option<
Performs a bind operationT> , provided by the OptionExtensions extension -
operator |(
T or) → T -
Available on Option<
Returns the value if it exists, otherwise returnsT> , provided by the OptionExtensions extensionor