whenBlank method
Executes block
function only when text is blank.
Implementation
void whenBlank(VoidCallback block) => onChanged((_) {
if (isBlank) block();
});
Executes block
function only when text is blank.
void whenBlank(VoidCallback block) => onChanged((_) {
if (isBlank) block();
});