Unit class

If you don't want to pass one of the generic parameters e.g. if you passed function that has no parameter, just use Unit as Type

Constructors

Unit()

Properties

hashCode → int
The hash code for this object. [...]
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic o) → bool
The equality operator. [...]

Static Properties

Default Unit
read-only