isFalsy static method
Implementation
static bool isFalsy(dynamic value) =>
value == false ||
value == null ||
(value is String && value.isEmpty) ||
(value is num && value == 0) ||
(value is Iterable && value.isEmpty) ||
(value is Map && value.isEmpty);