None<A> class

Represents the absence of a value. It's a concrete implementation of Option.

Use None to indicate that no value exists, typically in scenarios where in other languages one might use null or undefined.

Example:

final optionValue = None<int>();
Inheritance

Constructors

None()
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override