bool

Only two objects have type bool: the boolean literals true and false, which are both compile-time constants.

Dart’s type safety means that you can’t use code like if (nonbooleanValue) or assert (nonbooleanValue).

Related concepts

bool — Structure map

Clickable & Draggable!

bool — Related pages: