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<T>, provided by the OptionExtensions extension

Returns a new Option from an existing Option
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
someOr(T orElse()) → T

Available on Option<T>, provided by the OptionExtensions extension

Returns the value if it is some, or the result of orElse if it is none.
toNullable() → T?

Available on Option<T>, provided by the OptionToNullable extension

Returns the value if it exists, otherwise null
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<T>, provided by the OptionExtensions extension

Performs a bind operation
operator |(T or) → T

Available on Option<T>, provided by the OptionExtensions extension

Returns the value if it exists, otherwise returns or