not

inline fun Flow<Boolean>.not(): Flow<Boolean>(source)

Returns a Flow that emits the boolean negation (opposite) of each value emitted by the source Flow.

Return

A Flow that emits false when the source emits true and true when the source emits false.