Some<A> class
Represents an existing value of type A
. It's a concrete implementation of Option.
Use Some to encapsulate an actual value, as opposed to None which represents the absence of a value.
Example:
final optionValue = Some(42);
print(optionValue.value); // Outputs: 42
Constructors
Properties
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