ifFalse method

void ifFalse(
  1. void action()
)

Runs action only when the value is false.

Example:

isLoading.ifFalse(() => showContent());

Implementation

void ifFalse(void Function() action) {
  if (!this) {
    action();
  }
}