falsey function

bool falsey(
  1. dynamic value
)

Implementation

bool falsey(value) => value == null || value == false || value == '' || value == 0 || value == double.nan;