Empty<T> class

Inheritance

Constructors

Empty()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isPresent bool
no setteroverride
props List<Object>
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

Methods

asEmpty() Empty<T>
inherited
asPresent() Present<T>
inherited
conditionally<N>(bool _(Optional<T>), Optional<N> __(Optional<T>)) Empty<N>
override
equals(T value) bool
override
filter(Predicate<T> _) Empty<T>
override
flatMap<N>(Optional<N> _(T)) Empty<N>
override
ifEmpty(void action()) Empty<T>
override
ifPresent(void _(T)) Empty<T>
override
map<N>(N _(T)) Empty<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 supplier()) → T
override
orElseGet(T value) → T
override
orThrow(Exception exception) → T
override
run(void action(Empty<T>)) Empty<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