Google celebrates Hispanic Heritage Month. See how.

Some<T> class

A value wrapped in Some can be assigned to an OptionalNullable to convey the value should be used instead of a default.

Inheritance

Constructors

Some (T value)

const

Properties

hashCode → int

The hash code for this object.
read-onlyinherited

isDefined → bool

True if the value is Some or None.
read-onlyinherited

isUndefined → bool

True if the value is not Some or None.
read-onlyinherited

runtimeType → Type

A representation of the runtime type of the object.
read-onlyinherited

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