whenBlank method

void whenBlank(
  1. VoidCallback block
)

Executes block function only when text is blank.

Implementation

void whenBlank(VoidCallback block) => onChanged((_) {
      if (isBlank) block();
    });