Unit class final

Represents a void-like value in functional programming.

Used to indicate success where no meaningful value is returned (similar to void in Dart).

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
String representation of Unit — returns '()'.
override

Operators

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