isTruthy static method
Implementation
static bool isTruthy(dynamic value) =>
value == true ||
(value is String && value.isNotEmpty) ||
(value is num && value != 0) ||
(value is Iterable && value.isNotEmpty) ||
(value is Map && value.isNotEmpty);