unit top-level constant
Unit
const unit
A single value of type Unit that represents
void
.
This value can be used in place of void
when
defining functions or classes that take a parameter
of type void
.
Implementation
const unit = Unit.unit;