PresentValue<T extends Object> class

Inheritance

Constructors

PresentValue(T? value)
const

Properties

hashCode int
The hash code for this object.
no setteroverride
isPresent bool
no setterinherited
requireValue → T?
Returns the value if present (no matter if null or non-null), otherwise throws a StateError.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T?
final
valueOrNull → T?
return the value if present and non-null, otherwise null. this is useful for cases where you don't care between the value being absent or null.
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