Present<T> class

Inheritance

Constructors

Present(T value)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isNotPresent bool
no setter
isPresent bool
no setteroverride
props List
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
value → T
final

Methods

asEmpty() Empty<T>
inherited
asPresent() Present<T>
inherited
conditionally<N>(bool condition(Optional<T>), Optional<N> mapper(Optional<T>)) Optional<N>
override
equals(T value) bool
override
filter(Predicate<T> predicate) Optional<T>
override
flatMap<N>(Optional<N> mapper(T)) Optional<N>
override
ifEmpty(void _()) Present<T>
override
ifPresent(void action(T value)) Present<T>
override
map<N>(N mapper(T)) Optional<N>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optionally<X, N>(Optional<X> optional, Optional<N> optionalTuple(Optional<T>, Optional<X>)) Optional<N>
inherited
orElse(T ignored()) → T
override
orElseGet(T ignored) → T
override
orThrow(Exception ignored) → T
override
run(void action(Present<T>)) Present<T>
override
toList() List<T>
inherited
toSet() Set<T>
inherited
toString() String
A string representation of this object.

Operators

operator ==(Object other) bool
The equality operator.
inherited