None<T>  class 
    final
 
An Option with no value.
- Inheritance
- Available extensions
Properties
- 
  flattened
  → Option<T> 
- 
      Available on Option< An Option containing another Option flattened into a single Option.Option< , provided by the FlattenedOption extensionT> >no setter
- hashCode → int
- 
  The hash code for this object.
  no setteroverride
- isNone → bool
- 
  Whether thisis a None.no setteroverride
- isSome → bool
- 
  Whether thisis a Some.no setteroverride
- 
  iterable
  → Iterable<T> 
- 
  Returns an iterable over the possibly contained value.
  no setteroverride
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- 
  transposed
  → Result<Option< T> , E>
- 
      Available on Option< An Option containing a Result transposed into a Result containing an Option.Result< , provided by the TransposedOption extensionT, E> >no setter
- 
  unzipped
  → (Option<T> , Option<U> )
- 
      Available on Option< An Option containing a tuple transformed into a tuple of two Options.(T, U)> , provided by the UnzippedOption extensionno setter
- valueOrNull → Null
- 
  The contained value if thisis a Some, ornullotherwise.no setteroverride
Methods
- 
  and<U> (Option< U> other) → None<U> 
- 
  Returns otherifthisis a Some, or None otherwise.override
- 
  andThen<U> (Option< U> calculateOther(T value)) → None<U> 
- 
  Returns the result of calculateOtherifthisis a Some, or None otherwise.override
- 
  contains(T value) → bool 
- 
  Returns trueifthisis a Some of the givenvalue.override
- 
  inspect(void inspect(T value)) → None< T> 
- 
  Calls inspect with the contained value if thisis a Some.override
- 
  isSomeAnd(bool condition(T value)) → bool 
- 
  Returns trueifthisis a Some with a contained value that satisfiescondition.override
- 
  map<U> (U map(T value)) → None< U> 
- 
  Transforms the contained value, if any, by applying map to it.
  override
- 
  mapOr<U> (U map(T value), U defaultValue) → U 
- 
  Returns the contained value, if any, with mapapplied to it, ordefaultValueotherwise.override
- 
  mapOrElse<U> (U map(T value), U calculateDefaultValue()) → U 
- 
  Returns the contained value, if any, with mapapplied to it, or the result ofcalculateDefaultValueotherwise.override
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  okOr<E> (E error) → Err< T, E> 
- 
  Transforms an Option into a Result, mapping Some to an Ok of the contained value and
None to Err of error.override
- 
  okOrElse<E> (E calculateError()) → Err< T, E> 
- 
  Transforms an Option into a Result, mapping Some to an Ok of the contained value and
None to Err of the result of calculateError.override
- 
  or(Option< T> other) → Option<T> 
- 
  Returns a Some of the original value if thisis a Some, orotherotherwise.override
- 
  orElse(Option< T> calculateOther()) → Option<T> 
- 
  Returns a Some of the original value if thisis a Some, or the result ofcalculateOtherotherwise.override
- 
  toString() → String 
- 
  A string representation of this object.
  override
- 
  unwrap({String? msg}) → Never 
- 
  Returns the contained value.
  override
- 
  unwrapOr(T defaultValue) → T 
- 
  Returns the contained value, if any, or defaultValueotherwise.override
- 
  unwrapOrElse(T calculateDefaultValue()) → T 
- 
  Returns the contained value, if any, or the result of calculateDefaultValueotherwise.override
- 
  where(bool condition(T value)) → None< T> 
- 
  Returns a Some of the original value if thisis a Some and its contained value satisfiescondition, or None otherwise.override
- 
  whereType<U> () → None< U> 
- 
  Returns a Some of the original value if thisis a Some with a contained value of typeU, or None otherwise.override
- 
  xor(Option< T> other) → Option<T> 
- 
  Returns a Some if either, but not both, of thisandotheris a Some, or None otherwise.override
- 
  zip<U> (Option< U> other) → None<(T, U)> 
- 
  Returns a tuple of both thisandotherif both are Some, or None otherwise.override
- 
  zipWith<U, R> (Option< U> other, R zip(T value, U otherValue)) → None<R> 
- 
  Returns the result of zipcalled with boththisandotherif both are Some, or None otherwise.override
Operators
- 
  operator ==(covariant Option< T> other) → bool
- 
  The equality operator.
  override