Identity<A> class
Represents a container that wraps a single value.
An identity monad is a design pattern that allows wrapping a value. It's useful as a basic monad implementation, to understand the monadic structure without any side effects.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- value → A
-
The value that this
Identity
instance holds.final
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.
inherited